Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax Problem
Message
From
13/10/1999 13:44:22
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
07/10/1999 12:21:43
Thomas Ianuzzi
Information Security Consultants, Inc.
Florida, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00273773
Message ID:
00275957
Views:
22
>I am trying to assign the forecolor to a textbox called poltotal in the click event of a checkbox. I have tried the syntax below and many varients. Anyone know how to format this?
>
>THISFORM.POLTOTAL.FORECOLOR = [255,0,0]

Actually, rgb(255, 0, 0) evaluates to 255, so
THISFORM.POLTOTAL.FORECOLOR = 255

or if you want it more clear, in hex:
THISFORM.POLTOTAL.FORECOLOR = 0x0000ff

Just bear in mind that actual order of storing color values as integers is BGR, so it's blue*65536 + green*256 + red (was it Jim Booth who pointed that to me a year ago or more, or someone else?).

Of course, you don't have to calculate these numbers, you can still use rgb(255, 0, 0).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform