Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Build Me A Better Mouse Click!
Message
 
To
03/06/1998 21:46:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00104549
Message ID:
00104553
Views:
24
>I'm using VFP5.0 I have a multipage (pageframe) form. On one page there are a number of OptionButtons which depending on one's input will interactively move the user to a control (usually a grid) on another page. In order to accomplish this I use MOUSE CLICK AT #,# (in the InteractiveChangeEvent of the OptionButton) to move to the page I want activated with a SET FOCUS command to the specific control on the page.
>
>I suspect there is a cleaner or more efficient way of doing this. Originally I used the ACTIVATE/DEACTIVATE commands but found when I returned to the original page the previously activated page(or parts of it) bled through the screen leaving "ghosts"; so the mouse click solution worked once I found the right coordinates.
>
>I also use the MOUSE CLICK command to set the focus on certain ComboBoxes in order to have the list drop down when the focus is set programatically/interactively. This is a bit tricky because the coordinates of the down arrow of the ComboBox are sometimes difficult to match.
>
>If the screen gets moved or controls on the form are moved, then the mouse clicks don't work and have to be re-aligned. There must be a better way.
>
>TIA
>
>--lincoln

Lincoln, actually to activate another page you are supposed to use the code like:

thisform.pgfPageFrame1.Activepage = 2

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform