[Gambas-user] Model "T" Button BackGround Color

Lewis Balentine lewis at ...3412...
Sun Nov 30 14:48:15 CET 2014


It is claimed that Henry Ford  said, "You can have a Model 'T' in any 
color you want as long as it is black."

I am having a similar problem with the button controls but in grey. This 
all started when I was testing 'tabbing' between controls. The 
difference in color between the control that has focus and the ones that 
do not was barely perceptible. So first I tried making the text Bold 
when they got focus but some controls do not seem to be getting focus. 
So I though I would try changing the background color. I select button 
one on the form in the IDE and changed the background to bright yellow 
&H00BFBF&.

Then I ran the program and sure enough:
Any color I want as long as it is grey.

OK ... there is more than one way to skin a cat.
I put this line in the Sub Form_Open():
Button1.Background = &H00BFBF&

Then I ran the program again.
Any color I want as long as it is grey.
Well at least it is consistent.

So I am guessing that there is a system (gb.desktop or gb.qt4) class 
color array that I need to 'tamper' with to change the button background 
colors: normal, focus, selected? /The Wiki could use a search feature./

The original question I was trying to resolve:
   What is the order of and is there a way to control the Tab Order of 
controls on a form?

Lewis

[System]
Gambas=3.6.2
OperatingSystem=Linux
Kernel=3.13.0-24-generic
Architecture=x86_64
Distribution=Linux Mint 17 Qiana
Desktop=MATE
Theme=QGtk
Language=en_US.UTF-8
Memory=15994M

[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4




More information about the User mailing list