Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox 'Thingies'
Message
From
04/11/1997 09:17:25
 
 
To
04/11/1997 07:39:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00058117
Message ID:
00058135
Views:
25
>For those interested in the questions I posed in a couple of listbox threads recently, I found some answers.
>
>Re: list box multiple-selected items not retaining focus when the ROWSOURCE type is FIELDS ( i.e. bound to a cursor/table ) and you TAB out of the list box and then TAB back in, MS KB article Q134245 describes this behavior. Right . . . it's a "feature" :-). Two solutions offered: 1) Create a mover-type list box to move the desired items from one box to another. 2) Populate the listbox using AddItem method and set ROWSOURCETYPE to None. ( This is the solution I chose, works fine ).
>
>Re: Cannot pre-set items of a multi-select listbox as selected in the init of a form. MS KB article Q161730 descibes this . . . another "feature" :-). Resolution is to place code to pre-select the items in the Activate method of the form with a switch to cause the code to fire only once when the form starts up. Haven't tried this yet . . . assuming it will work.
>
>Bill

Once again ( sigh ... ), for those interested, I tried the workaround for the second item and it works for a single-select listbox but not for a multi-select listbox. At this point I guess the only solution for multi-select case is a mover-type list box.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform