I've just noticed the following. In one directory, I have a start rex script, a RPC DLL that contains an icon (ms.ico) that is shown as the icon for any windows and an RPC generated exe. I "attach" the icon to the GUI windows via
script_name = 'MS.ICO'
IF STATE(script_name) = 0 THEN
DO
guiwindowdefaults(script_name, , , , extra_args)
CATCH SYNTAX
NOP
END
ELSE
guiwindowdefaults(, , , , extra_args)
. I run the start rex script, which does a MACRO call on the DLL (resulting in the icon being shown in the first "non-compiled" script). From this window, I call (via iterateexe), the exe file. This also runs through the code above, and also after doing a MACRO call to the same DLL.
However, with the exe window, I don't see any icon.
Do you want me to try and put together a scenario ?
(Note that as soon as I copy the ico file to the directory above, the exe shows the icon).
BTW, I tried changing the code to
DO
guiwindowdefaults('MS.ICO', , , , extra_args)
CATCH SYNTAX
NOP
END
but it's almost as if the exe doesn't look in the DLL for the icon. |