Windows and forms in programs / OPEN WINDOW |
If the window is opened with a form (WITH FORM) that defines an IMAGE attribute in the LAYOUT section, the window will use this image as icon. Subsequent OPEN FORM / DISPLAY FORM instructions may change the window icon if the new form defines a different image in the LAYOUT section.
If you want to set a window icon dynamically, you can use the setImage() method of the ui.Window built-in class.