Icons from resource DLL (solved)

This forum is for eXpress++ general support.
Message
Author
Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Icons from resource DLL (solved)

#11 Post by Wolfgang Ciriack »

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 ?
_______________________
Best Regards
Wolfgang

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: Icons from resource DLL (solved)

#12 Post by Auge_Ohr »

hi,
Wolfgang 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 ?
have you try PDR 5314
https://www.xbaseforum.de/viewtopic.php ... 0&start=21
greetings by OHR
Jimmy

Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Icons from resource DLL (solved)

#13 Post by Wolfgang Ciriack »

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).
_______________________
Best Regards
Wolfgang

Post Reply