'Filenameopen button label empty

I am creating a dialog from RunBase class, but when the dialog shows the button of file selector is empty:

enter image description here

code:

    dlgFileName             = dialog.addField(extendedTypeStr(FilenameOpen));
    dlgFileName.lookupButton(FormLookupButton::Always);

    dialog.filenameLookupFileName(fileName);
    dialog.filenameLookupFilter(['*.*','All files']);


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source