Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select an object in a builder
Message
From
29/03/2007 14:25:00
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
29/03/2007 13:25:18
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01209824
Message ID:
01209985
Views:
17
>>So, how to do this? How do I control the class editor to tell it which page of a pageframe to bring up, and which control on it should be selected. Or, alternately, how do I set the value of the top combo in the PEM window?
>
>To add to what Cetin said, SetFocus works for a lot of controls, but not for all of them. In some cases, you have to use the MOUSE command to simulate a click on the desired control. Even then, there are some situations where you just can't get it to work.

I'm lucky this time - I only need to visit the textboxes, combos and checkboxes on this form.

I've solved this temporarily by just displaying the .name and .parent.name of the control, which was enough for me. As usual, I'm writing disposable builders - few lines of code which applies to the many similar controls on a couple of very busy forms. They do the job even unfinished; any glitches they have are not worth fixing, the time to fix would be longer than handling these few exceptions muscularly (i.e. using the mouse :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform