Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EditBoxes width etc change
Message
De
13/03/2007 05:21:56
 
 
À
13/03/2007 05:01:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01202917
Message ID:
01202919
Vues:
10
Hi Chaim!

I think the best events for resizing the editboxes would be the MouseEnter and the MouseLeave events.
Inside the MouseEnter event you could write the actual values (width, height, left, top) to a thisform variable and afterwards resize the editbox as you need.
In the MouseLeave event you could then restore this thisform varibles values (this.top = thisform.nOldTop, ...).

You'll have to create the thisform varibles only one time, because the mouse cannot only be over multiple object at the same time and therefore you can reuse the same variables for all objects.

HTH

>Hi all
>I have a form (all objects is readonly) with few edit boxes and I want to void the user scrolling.
>
>When the user will move the mouse on the edit box the edit box height/left/top/width will grow and when he realese its will run the method 'ReseateObjects' that I created.
>
>Now the questions:
>1. What's the best event to manipulate this grow/reduce the edit boxes.
>2. I must to use with the 'ReseateObjects' or there is is a way to tell VFP resete this object/all object to same size and location when the form opened?
robert.oh.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform