Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Box selection changing
Message
From
03/12/2001 07:11:48
 
 
To
03/12/2001 07:05:26
Garry Sankowsky
Zodiac Publications
Tolga, Australia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00588634
Message ID:
00588636
Views:
26
Hi!

Somewhere in the code the Value property of the list box, ListIndex changed. Also, when ControlSource of the Listox specified, the value from ControlSource is used to select the item.

As opposite, you can use all above to set the selection in your program to force list box displaying correct selection - by assigning values to the ListIndex or Value, or, when ControlSource specified, by assigning value to the variable/field specified in ControlSource (then Refresh call of ListBox control).

HTH.

>I have a list box on a page of a pageframe which selects picture files to view. If I move to another page where the picture is viewed full size, then back again, the file selected jumps to the bottom of the list.
>
>Is there any way of stopping this?
>
>If I set focus on the list when returning, the previous selection jumps to the bottom. If I do not do this, it jumps to the bottom when I try to select another file (this is even worse!).
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
Reply
Map
View

Click here to load this message in the networking platform