Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement