Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color coded list box?
Message
From
03/10/2001 09:13:36
 
 
To
03/10/2001 09:09:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00563047
Message ID:
00563537
Views:
38
I guess this behaviour comes from old FoxPro times where complex coloring programming made - to simplify this programming. there are also other rules in the help file described (in addition to this rule - aking text always visible):

When using RGB values, the following rules determine the color:

When all three color values (R, G or B) are below 32, the color is black.
When all three color values (R, G or B) are between 32 and 64, the character code is dark gray.
When all three color values (R, G or B) are between 65 and 191, the character code is gray.
When any of the three color values (R, G or B) are above 191, the color is high intensity (+ or *).




>Hi Vlad
>
>If there is no text, only spaces, its fine. But if you also have a text label then it goes wierd and you need to make the foreground slightly different from background. This can be the difference between 255 and 254. Maybe a bug?
>
>I also changed the click event to display colour bar when user makes a selection. i.e.
>
>*click event of combo box
>
>with this
>
> do case
> case .ListIndex = 1 && Black for example
> .BackColor = RGB( 0, 0, 0)
> .ForeColor = RGB( 0, 0, 0)
> case .ListIndex = 2 && Next Colour
> ..
> ..
> ..
>
> endcase
>
>endwith
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform