Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One more minute and I will beat my head on the table
Message
De
25/05/2006 12:30:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01124687
Message ID:
01124927
Vues:
9
This message has been marked as a message which has helped to the initial question of the thread.
>>In trying to follow this thread, I think you're missing something very basic here. Setting the Anchor property on your mover class will only have an impact on the size/position of the mover if it's container is resized. If the container doesn't have it's anchor properties set, it's not resizing when the form resizes, therefore, you're object won't reposition or resize either.
>
>I finally made it to work using this code in top container (cntReportFilter) Init method
>
>with this
>	.anchor = 0
>	.height = .height + 1
>	.anchor = 15
>	store 0 to .cntSort.anchor, .cntOutput.anchor, .cntFilter.anchor, .cntFilter1.anchor
>	store 180 to .cntSort.height, .cntOutput.height, .cntFilter.height, .cntFilter1.height
>	store 240 to .cntSort.anchor, .cntOutput.anchor, .cntFilter.anchor, .cntFilter1.anchor
>endwith
>
>Trying to adjust height in design time doesn't work.

Correct. How else would you re-adjust control positions if you wanted to move things in the container if it autoamtically moved them when you resized the container in design mode? I'd find that a *much* bigger annoyance myself.

It's kind of like the idea of changing the size of the font used in resizing a form. There are times that's what you may want to do, and other's where it's not.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform