SetGadgetPixmap
degac opened this issue · 3 comments
degac commented
Import MaxGui.Drivers
SuperStrict
Global window:TGadget = CreateWindow("Buttons",40,40,400,330,Null,WINDOW_TITLEBAR|WINDOW_CLIENTCOORDS)
Global icon:Ticonstrip=LoadIconStrip("_risorse/icone.png")
If icon=Null Print "Icon: NULL" Else Print "Icon: OK!"
Global pix:TPixmap=PixmapFromIconStrip(icon,2)
If pix=Null
Print "PIX : is null"
Else
Print "PIX : is OK"
End If
Global btn_1:Tgadget= CreateButton("Hallo",10,10,100,30,window)
SetGadgetPixmap btn_1,pix,GADGETPIXMAP_ICON|GADGETPIXMAP_NOTEXT
Repeat
Select WaitEvent()
Case EVENT_WINDOWCLOSE, EVENT_APPTERMINATE
End
EndSelect
Forever
No errors or warnings raised during compiling, simple no icon shown.
woollybah commented
The latest bmk appears to resolve the issue, by automatically generating and adding a manifest and resource, to a win32 gui application.
degac commented
Thanks very much!
I will check
And Happy Easter!
2018-03-31 22:17 GMT+02:00 Brucey <notifications@github.com>:
… The latest bmk appears to resolve the issue, by automatically generating
and adding a manifest and resource, to a win32 gui application.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOeu0D57kOsnjDQqZydBEc1LDs28O9jPks5tj-RZgaJpZM4S5rKc>
.
--
*Christian Degasperi*
GWRon commented
If no longer valid - close?