Windows and forms in programs / OPEN WINDOW |
The TEXT attribute in the ATTRIBUTE clause defines the default title of the window. If the window is opened with a form (WITH FORM) that defines a TEXT attribute in the LAYOUT section, the default is ignored. Subsequent OPEN FORM / DISPLAY FORM instructions may change the window title if the new form defines a different title in the LAYOUT section.
It is recommended that you specify the window title in the form file, instead of using the TEXT attribute of the OPEN WINDOW instruction.
If you want to set a window title dynamically, you can use the setText() method of the ui.Window built-in class.