General information
Category:
Forms & Form designer
Title:
Build Me A Better Mouse Click!
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only