Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Design time re-size
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01406083
Message ID:
01407688
Vues:
231
>Naomi,
>
>Just make your class smart enough to resize its internals at Init() time. Drop the container onto the form, set the container size to fit your form surface and let the container figure out how to juggle it's contents around when it first constructs at runtime. It doesn't really matter at design time that your listboxes and buttons don't "look right".
>
>>Forgot if this problem was discussed here or not. Is it possible to create a container based class that would resize its components properly in design-time (in run-time it's easy).

Hi David,

I set anchors properties of my controls to the appropriate values and I tried in the container's Init
this.width = this.width
this.height = this.height

store 45 to this.lstSource.Anchor , etc.

however, when I place the control on the form and resize it in design-time, in the run-time the controls don't take up the space of the container properly.

Do I have to play with actual positions instead ?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform