Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing a Form With _vfp.resize
Message
From
29/06/2005 17:19:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Resizing a Form With _vfp.resize
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01027522
Message ID:
01027522
Views:
90
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"
Next
Reply
Map
View

Click here to load this message in the networking platform