Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resize
Message
From
11/10/2001 19:55:52
 
 
To
11/10/2001 15:20:00
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Resize
Miscellaneous
Thread ID:
00567166
Message ID:
00567332
Views:
12
>I want to allow that the user could resize objects at run time in the same way that we make when we are developing a form...
>It's possible to do this?
>
>Emerson Santon Reed
>emerson@folhamatic.com.br

OK, I misunderstood the initial question. But if you wanted to go this route you can probably achieve this adding code to the MouseMove and MouseDown events of both the form and the control, and probably a couple of form properties.

Let's say in the MouseDown of the control you identify if the click was done at the edge of it, then you could set a form flag to .T. so you can enter "Control Resize Mode" and test for it during the MouseMove of both the control and the form to resize the control if the user is in "Control Resize" mode. You would probably need to use the right-click to initiate this operation to prevent any default behavior. During "Control Resize" you would change the Width adjusting to the X coordinate returned by MouseMove.

Throw in changing the MousePointer of the form and control while in a "Control Resize" mode and when the mouse is over the edge of the control and you might work this out.

Although this could get a little complicated depending on how many and what type of controls you want to be able to resize.

Just an idea.
Previous
Reply
Map
View

Click here to load this message in the networking platform