Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox behavior - not responding
Message
De
09/06/2018 15:21:28
 
 
À
09/06/2018 13:12:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01660652
Message ID:
01660656
Vues:
56
>>Hi,
>>
>>I have a form on which I create a LIstbox - Fill the data with following code:
>>
>>
>>Select curList
>>	With Thisform.ggListbox
>>		.RowSource = m.lcSQL
>>		.RowSourceType = 3
>>		.Requery()
>>		.ListIndex = 1
>>		.Visible = .T.
>>		.SetFocus()
>>	ENDWITH
>>
>>It shows the listbox with all the content correctly, however I cant do anything with it. Click on any Item, it does not respond.
>>
>>So for testing I had added a combobox with following code
>>
>>With Thisform.ggListbox
>>		.RowSource = m.lcSQL
>>		.RowSourceType = 3
>>		.Requery()
>>		.ListIndex = 1
>>		.Visible = .T.
>>		.SetFocus()
>>	ENDWITH
>>	**FOR testing purpose I had added a combo gglCombo1
>>	With Thisform.gglcombo1
>>		.RowSource = m.lcSQL
>>		.RowSourceType = 3
>>		.Requery()
>>		.ListIndex = 1
>>		.Visible = .T.
>>		.SetFocus()
>>	Endwith
>>
>>
>>And the combo 'works' viz I can select a.s.o.
>>What should I change to my code so that the Listbox will also allow an item to be selected?
>>
>>Regards,
>>Koen
>
>Did you set the listbox to readonly?
Hi,
I cant find the property ReadOnly in listbox.
Read also an article by Mike Lewis : http://www.hexcentral.com/articles/readonly-listbox.htm
Regards,
Koen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform