[Gambas-user] Issue 368 in gambas: .ForeGround not accepting color constants - Gambas 3.3.4
gambas at ...2524...
gambas at ...2524...
Mon Dec 24 01:48:49 CET 2012
Comment #1 on issue 368 by t4769_a... at ...2320...: .ForeGround not accepting
color constants - Gambas 3.3.4
http://code.google.com/p/gambas/issues/detail?id=368
further info . . .
I have a work around. I converted all the colours to numbers and came up
with this
' set the foreground colour for the taglines and date/time
lblMonthTime.ForeGround = Choose(Settings["StartUp/LabelColour", "4"],
"0", "16711680", "65280", "16776960",
"255", "16711935", "65535", "16777215")
It isn't elegant but it works.
FYI --- My program grabs a different full form image with each startup.
Sometimes the image colours do not contrast enough with the label text so I
came up with a few colours to change.
Also, I have a duplicate of the code that doesn't work in another form in
the program and it works as expected.
I tried selecting all and pasting the code and controls onto another form
but it didn't work.
Hope this helps.
More information about the User
mailing list