Hello all,
I'm using the current version of Blue GUI and I have a question.
When using the setgadgetcolor command, I can't get buttons and labels to paint correctly. Their text is still black and the buttons are still the default windows silver color.
My createui function looks like this...
**THE START BLUE CODE AND LICENSE NUMBERS ARE HERE *****
*** The Panel for the background of the prompt *********
panel=createPanel(375,310,290,135,0)
setPanelBorderStyle panel,2
*** Hide the prompt until needed ********
setGadgetVisible panel,0
*** Color the panel a dark maroon color with white text *****
setGadgetColor panel,rgb(130,1,0),rgb(255,255,255)
*** Create the YES button ********
yesbtn=createButton(57,102,75,25,"Yes",0,panel)
*** Color the button a lighter shade of maroon with white text *******
setGadgetColor yesbtn,rgb(157,55,54),rgb(255,255,255)
*** Create the NO button **************
nobtn=createButton(152,102,75,25,"No",0,panel)
*** Color the button the same as the YES Button ********
setGadgetColor nobtn,rgb(157,55,54),rgb(255,255,255)
**** Make The text for the prompt in labels and color them*****
*** Description of the question on the prompt *****
prompt=createLabel(12,7,265,45,"My Text.",panel)
setGadgetColor prompt,rgb(130,1,0),rgb(255,255,255)
**** The question in the prompt which the user answers yes or no *******
prompt2=createLabel(22,77,235,15,"My Question?",panel)
setGadgetColor prompt2,rgb(130,1,0),255
As I said, with this setup, the prompt appears assembled and the background panel is colored the dark red. However the text on the labels is still black and the buttons appear in the windows default silver color.
I've tried the paintgadget command after each setgadgetcolor command to redraw the gadget hoping it would appear the correct color but no luck.
Also, the createFont command does not work. Dark Basic Pro (5.9) does not understand the command. I get the beloved "cannot understand command at line x) error. I have the correct gui file included in the program and it understands all other BlueGUI commands except this one.
Any help on these issues would be very greatly appreciated.
Windows:
At Least The hour Glass Works