bmx-ng / maxgui.mod

BlitzMax MaxGUI modules port.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SetGadgetPixmap

degac opened this issue · comments

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.

The latest bmk appears to resolve the issue, by automatically generating and adding a manifest and resource, to a win32 gui application.

commented

If no longer valid - close?