Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Animated Effects
Message
 
À
29/10/2010 06:11:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01487444
Message ID:
01487910
Vues:
64
I have something like this addressed in the form resize event.
You basically have to move controls around based on the form width and height

So then with a timer or a method with a loop increase the form size incrementally till you get where you want.
*thisform.ScrollBars = IIF( thisform.ViewPortHeight < 619, 2, 0)
* don't let it get smaller than 584 high and 781 wide
IF thisform.height > 650
	IF thisform.height > 720
		thisform.edtdesc.FontSize = 11
	ELSE
		thisform.edtdesc.FontSize = 10
	ENDIF
ELSE
	thisform.edtdesc.FontSize = 9
ENDIF
*thisform.Height = MAX( thisform.Height, 584 )&& set in minheight property
*thisform.Width = MAX( thisform.Width, 781 )&& set in minwidth property
thisform.label3.Left = thisform.Width - 105
thisform.cmdAttachment.Left = thisform.Width - 221
thisform.txtSubj.Width = thisform.Width - 357
thisform.txtRecdate.Left = thisform.Width - 109
thisform.cal1.Left = thisform.Width - 29
thisform.btnPrev.Left = thisform.Width - 109
thisform.btnTop.Left = thisform.Width - 109
thisform.btnNext.Left = thisform.Width - 61
thisform.btnBottom.Left = thisform.Width - 61
And So On And So on....
Ron Seidl
Independent Developer
VFP

"I'm playing in life's theater in anticipation of a great cast party!"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform