Still no coloured buttons with new MaxGUI.Drivers

BlitzMax Forums/MaxGUI Module/Still no coloured buttons with new MaxGUI.Drivers

jp22(Posted 2008) [#1]
Hi,

I'm running 1.28. I've downloaded MaxGui.mod from SVN
I've downloaded MinGW

I've removed the 4 GUI libs from the mod folder

I've add Import MaxGUI.Drivers to the start of my code..

I've recompiled.....No errors...Program runs!


STILL NO COLOURED BUTTONS!!!

Can someone see what i'm doing wrong?


window=CreateWindow("WAV Splitter '08",0,0,703,413,Desktop(),WINDOW_TITLEBAR|WINDOW_MENU)

SplitWAVS_Button=CreateButton("SPLIT WAVs",544,56,128,40,window,BUTTON_PUSH)

SetGadgetColor SplitWAVS_Button,255,255,255

(or any combination of R,G,B...or adding an extra ,1 at the end....)

Nothing...Same grey buttons as before....

Thanks!
JP


SebHoll(Posted 2008) [#2]
Unfortunately, standard push button still don't allow for custom colours. Those gadgets supported in the new MaxGUI driver are: labels; checkboxes; radio buttons; textfields; textareas; panels; windows; listboxes; treeviews; and progress bars (when not using Windows XP themes).


jp22(Posted 2008) [#3]
Thanks for the quick response.

Soooo....We can now colour everything apart from what I needed!

I saw your post here, got all excited at the screen shot and didn't notice that you'd not shown any standard buttons!

http://www.blitzbasic.com/Community/posts.php?topic=78512#880829

Also, for what it's worth, even after I followed everything by the book, my "Build Modules" option was still greyed out - But Ctrl_D still did the trick..Spooky...

Thanks again
JP


tonyg(Posted 2008) [#4]
There is an imagebutton code in the archives which might help you plus a SmartButton that jsp has written which is very very good. Obviously not as simple as having colours on buttons natively but will help if you're stuck.


Mark Tiffany(Posted 2008) [#5]
Seb, I wonder if we could lift that imagebutton code and make it one of the proxygadgets module...

http://www.blitzmax.com/codearcs/codearcs.php?code=1539