Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resize
Message
From
11/10/2001 18:30:40
 
 
To
11/10/2001 14:54:32
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:
00567306
Views:
9
>How can I do to resize a textbox or any other control manually at run time (like resize a form)?
>

ôi, Emerson

This is how I would approach the problem (keep in mind I've never done this, it's just ideas for an exploration):

1) put a shape under the resizable object a bit wider and taller than the object in order to draw a border around the object

2) when the shape receives a MouseDown Event it means the user started a resize operation

3) trap MouseUp and MouseMove Events so that a resizing operation can be monitored (an obvious issue to be addressed: if the user moves the mouse out of the shape area which control receives this events? I believe the mouse events must be trapped by the form): the MouseMove event leads to a size recalculation (with auto-redraw for feed-back), the MouseUp to the end of the resize operation.

Best way of doing, er, trying this is to build a container for the shape and the resizable object.


bye
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform