Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Different screen resolutions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00136440
Message ID:
00136598
Vues:
32
See GOF::Builder.

FWIW I've built several SetSizeAndPosition situations without such complexity.
1) Form knows its size based on Sysmetrics.
2) Control buttons know they must live 11 pixels from the bottom of a form and 9 from the right edge if MS SANS SERIF 8, 13 and 9 pixels if in some other font.
3) The OK button can position itself relative to cmdCancel with no other fanfare.
4) Listbox fills the form leaving room for control buttons plus the Windows guideline for inner control spacing, and so on.

See also LAYOUT.EXE at http://www.stevenblack.com, but you know, I know SFA about the giving around here, DB.


>> FUNCTION SetSizeAndPosition
>> FOR EACH oControl in THIS.Controls
>> IF PEMSTATUS(oControl, "SetSizeAndPosition", 5)
>> oControl.SetSizeAndPosition()
>> ENDIF
>> ENDFOR
>
>Of course, without a mediator of some kind, this presupposes that each control is capable of resizing and repositioning itself without knowledge of any other controls, which is probably not what is desired.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform