Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resizable Container Control
Message
De
28/07/1997 18:09:19
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brésil
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00041015
Message ID:
00042022
Vues:
34
>Not that I know of, Renato, but you can resize it programatically when the user resizes the window that it's in. So if your window originally sized at 100,200, and the user resized it to 75,180, put in your form's resize event:
>This.MyCntnr.Width =Thisform.OrigWidth *75/100
>This.MyCntnr.Height=Thisform.OrigHeight*180/200
>(Where OrigWidth & OrigHeight are form properties which are equal to the original width & height, and 100 and 200 stay constant because they're the original width & height of the form itself).
>
>If you want to have more than one sizable container on the same form, you may need to do a form set with some border tricks which make them look like the same form.
>
>It's either that or some VERY fancy Drag & Drop routines, but that seems more hastle than it's worth.
>
>JR

Thanks, Joy, I already got what I wanted with some code at the Container's MouseMove event...

Renato
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform