Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listboxes
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00112259
Message ID:
00113018
Views:
28
Jayesh,

Have you set any other properties of the listbox? Because this doesn't work for me (might be video driver related on this machine)

define popup mypop from 0,0 && in screen
define bar 1 of MyPop prompt "Red" color rgb(255,0,0,255,255,255)
define bar 2 of MyPop prompt "Blue" color rgb(0,0,255,255,255,255)
define bar 3 of MyPop prompt "Green" color rgb(0,255,0,255,255,255)
define bar 4 of MyPop prompt "Red2" color rgb(255,0,0,0,0,0)
define bar 5 of MyPop prompt "Blue2" color rgb(0,0,255,0,0,0)
define bar 6 of MyPop prompt "Green2" color rgb(0,255,0,0,0,0)
define bar 7 of MyPop prompt "Green3" color G+/W
define bar 8 of MyPop prompt "Green3-1" color scheme 1
define bar 9 of MyPop prompt "Green3-2" color scheme 2
define bar 10 of MyPop prompt "Green3-3" color scheme 3
define bar 11 of MyPop prompt "Green3-4" color scheme 4
define bar 12 of MyPop prompt "Green3-5" color scheme 5
define bar 13 of MyPop prompt "Red4" color rgb(255,0,0)
define bar 14 of MyPop prompt "Blue4" color rgb(0,0,255)
define bar 15 of MyPop prompt "Green4" color rgb(0,255,0)

scheme 1,3 and 4 cause a gray bar under the item but the color of each item is still black.

> I have used combination of REND() and RGB() function to obtain different color randomly.
>
>See help of RAND() function to get random number between 1 to 255
>put this random number just like this
>
>DEFINE BAR 1 OF mypopup COLOR RGB(lnrand1,lnrand2,lnrand3)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform