Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox with pre-selected checkboxes?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01136236
Message ID:
01136270
Views:
10
Hi Rodd,

I prefer to use multiselect grid from chapter 6.9 of KiloFox.


>I'm creating a generic form that can be used to present a list to a user. The form uses a listbox with check boxes (many thanks to the "1001 Things ... " team).
>
>One of the parameters passed to the form is the RowSource to be used. In the Init, I set the rowsource for the listbox. This part works great!
>
>However, I want to be able to pre-check some of the items in the list. So, I'm allowing the user to pass a comma-delimited list of items as a parameter to the form. I then run the following code in the form's Init:
<snip>
>
>If I add a button to the form and have the click event call this._PreSelect, everything works great. Also, the call to _PreSelect does indeed find the matches and set the selected flag in my array. However, setting the picture during Init does not seem to have any affect.
>
>Is there any way to get the listbox to accept different pictures during the form's init? If not, how can I "pre-check" those particular items?
>
>Thanks for your help!
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform