Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Network:
Windows 2003 Server
>>I have a listbox.
>>
>>I want to preselect items in the listbox in the Init method of my form. the MultiSelect property is .T.
>>
>>I populate the listbox with a cursor, and then set individual Selected(i) = .T., for one or more entries.
>>
>>This appears to actually cause those items to be selected, but the selections lack the blue highlighting.
>>
>>When the user then clicks on items, the items clicked on do highlight.
>>
>>How do I get the programmatically selected items to appear highlighted.
>>
>>Thanks,
>>Jim
>
>Try doing it after the form is activated.
Naomi,
Thanks for your suggestion. I just moved the code that selects items in the listbox into the Activate method.
Same result: items are selected, but they are not highlighted.
Jim
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement