Button pixmaps

BlitzMax Forums/MaxGUI Module/Button pixmaps

Adam Novagen(Posted 2016) [#1]
I'm baffled. I have a button, styled explicitly as BUTTON_PUSH, and I'm trying to add an icon to it using SetGadgetPixmap(). For whatever reason, I am completely unable to do so. I even tested a self-contained example and nothing doing. See for yourself:



The image I'm using can be downloaded from here:



I don't get it. SetGadgetPixmap() is working fine for the window panel, but it's not doing diddly on the button. My results are always as follows:



What gives?


Chapman7(Posted 2016) [#2]
Add
?Win32
Import MaxGUI.XPManifest
?



Adam Novagen(Posted 2016) [#3]
Perfect, and it even gave me a better look on the UI elements. Thanks Chap.