Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Build Me A Better Mouse Click!
Message
From
03/06/1998 21:46:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Build Me A Better Mouse Click!
Miscellaneous
Thread ID:
00104549
Message ID:
00104549
Views:
65
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
Next
Reply
Map
View

Click here to load this message in the networking platform