Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to disable a ListView?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00826126
Message ID:
00826259
Vues:
25
>Terry,
>
>The Activex controls in VFP are placed in OLE container which in turn is placed on a form. "thisform.olecontrol.something" references the OLE container. In most cases VFP internaly corectly translates it into "thisform.olecontrol.object.something". However if container has method/event/property with the same name as activex control than VFP doesn't do such translation. To make sure that you reference Activex control method/event/property use "thisform.olecontrol.object.something" notation.

As always, Sergey - it's appreciated. Thanks

>
>
>>>Did you try
Thisform.ListView1.object.Enabled = .F.
>>>
>>>>I would like to disable a listview (or two). I can simulate this by changing the background color and placing a transparent overlay on top of it. Is there a better way?
>>
>>No - but I will - the "object" clause is alien to me. Thanks to you - and Claudio - I will give it a try.
>>
>>Any background on the "object" clause. I do not come across it that much (if, at all) in OCX help. Is there a rhyme or reason to it?
>>
>>Thanks
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform