Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EditBoxes width etc change
Message
From
13/03/2007 05:21:56
 
 
To
13/03/2007 05:01:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01202917
Message ID:
01202919
Views:
8
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform