Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resizing a Form With _vfp.resize
Message
De
29/06/2005 17:19:41
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Resizing a Form With _vfp.resize
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01027522
Message ID:
01027522
Vues:
88
I have a sizable, modal, in screen form that has the below code in its resize event:
*--this.initialformheight set in form init
*--this.initialformwidth set in form init
DODEFAULT()
this.newformheight = this.height - this.initialformheight
this.newformwidth = this.width - this.initialformwidth
IF This.newformheight <> 0 && increased/decreased height
	this.oletreeview.height = this.oletreeview.height + this.newformheight
	this.owb.height = this.owb.height + this.newformheight
ENDIF
IF THIS.newformwidth <> 0 && increased/decreased width
	this.owb.width = this.owb.width + this.newformwidth
ENDIF
this.initialformheight = thisform.Height
this.initialformwidth = thisform.Width
This works great if the user resizes the form itself. However, I want the form to resize based on the user resizing the _vfp properties. Can I do that? Whenever _vfp resize is run, I want the form resize to run and pretty much run the same code...

TIA,
Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform