Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resize
Message
De
11/10/2001 18:30:40
 
 
À
11/10/2001 14:54:32
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Re: Resize
Divers
Thread ID:
00567166
Message ID:
00567306
Vues:
10
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform