Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Different color on the list
Message
From
09/07/2001 02:42:48
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00527980
Message ID:
00528009
Views:
22
Hi all,

>>Can I set different forecolor of item on the list box control? Does anyone know the other method or activex control can to that? I would like to create a note board but it is using different color to present each note. Thank you very much ...
>>
>>Best Regards,
>>
>>Justy Chow

>No you can't do it with a list box.

Yes you can....

Define a Listbox on your form and set its controlsourcetype to 9 - popup, set its controlsource to "test"

In the load event:
DEFINE POPUP Test
DEFINE BAR 1 OF Test PROMPT "Red" COLOR ,RGB(255,0,0) STYLE "B"
DEFINE BAR 2 OF Test PROMPT "Blue" COLOR ,RGB(0,0,255) FONT "Courier new", 10 STYLE "I"
See help on define bar for more customizable properties

Walter,




>However, you can use a grid instead by setting the properties of the grid so it "looks like" a list box. The color for individual rows of the grid can be set by the DynamicBackColor/DynamicForeColor properties.
Previous
Reply
Map
View

Click here to load this message in the networking platform