Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox control
Message
 
To
03/08/1996 20:42:10
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00002923
Message ID:
00005041
Views:
30
>>The way to change the highlighted (selected) item in a list box is to change the selected() index property to true.
>>For example if you want indexed item number 10 to be selected for a list box named list1, do:
>>THISFORM.LIST1.SELECTED(10)=.T.
>>
>Is there a way to set the color of each line of a list box?
> The SelectedItemBackColor and forcolor only apply to the selected /
> active line but do show the ability to color diferenly an individual
> line within a list box. Perhaps making my own sub-classed ListBox?
Hi Jim,
You're probably going to end up simulating a listbox with a grid. With a grid you can easily do what you want.
Good luck
Hugh
Microsoft hears loudest what the VFP community says about Visual FoxPro by looking at the bottom line!

Support the product. Buy the latest version!

Hugh Winters @ WorldData 408-512-1131
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform