Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to disable a ListView?
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00826126
Message ID:
00826253
Views:
20
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.


>>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform