Hello Roger,
i now solved the loading of icons for the pushbuttons from a resource.dll.
But how can i set an icon for a dialog ?
The DCGETOPTIONS ICON only accept a numeric value, not an icon object, so i always get the default Alaska icon.
Is there a solution for dialogs to set the icon with an icon object - perhaps in the EVAL codeblock of the dialog ?
Icons from resource DLL (solved)
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: Icons from resource DLL (solved)
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: Icons from resource DLL (solved)
hi,
https://www.xbaseforum.de/viewtopic.php ... 0&start=21
have you try PDR 5314Wolfgang Ciriack wrote: ↑Fri May 14, 2021 4:34 pm But how can i set an icon for a dialog ?
The DCGETOPTIONS ICON only accept a numeric value, not an icon object, so i always get the default Alaska icon.
Is there a solution for dialogs to set the icon with an icon object - perhaps in the EVAL codeblock of the dialog ?
https://www.xbaseforum.de/viewtopic.php ... 0&start=21
greetings by OHR
Jimmy
Jimmy
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: Icons from resource DLL (solved)
Hello Jimmy,
if the Dialog is created, i have successful loaded the icon in an object.
So my goal is to use DCGETOPTION ICON oIcon (instead of a numeric id) or replace the Icon of the dialog in DCREAD..... EVAL(|o| o:XXXSetIcon(oIcon)..
Don't know if there is a possibility for XXXSetIcon(oIcon).
if the Dialog is created, i have successful loaded the icon in an object.
So my goal is to use DCGETOPTION ICON oIcon (instead of a numeric id) or replace the Icon of the dialog in DCREAD..... EVAL(|o| o:XXXSetIcon(oIcon)..
Don't know if there is a possibility for XXXSetIcon(oIcon).
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang