Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent Grid form losing focus ?????
Message
From
23/10/2005 09:15:14
 
 
To
23/10/2005 05:56:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01061471
Message ID:
01061477
Views:
11
The problem I have is with the TreeView controle. When no other control can get the focus the TV can. Why is that ? Because it is an ole control ??

How about trying this? When the grid's Valid returns .F. ( or 0 ) so that the grid does not lose focus, Disable the TreeView using this line of code:
Thisform.oTree.Object.Enabled = .F.
Then you can re-enable it when the grid's Valid reutrns .T.

The only problem is that the grid's Valid does not fire if you try to click on the TreeView when it is disabled, so you will need something more to re-enable the TreeView.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform