Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with Sizes while hidden...
Message
From
13/10/1999 19:51:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Problems with Sizes while hidden...
Miscellaneous
Thread ID:
00276117
Message ID:
00276117
Views:
73
Try this in a standard form's destroy():


this.visible = .f.
debugout this.windowstate
this.windowstate = 0
debugout this.height
debugout this.width
debugout this.left
debugout this.top


You would expect to get the forms state, then its normal heights, ect. But when its maximzed, you get its state and its maximized heights, ect.

Can anybody verify this? Has anybody got an easy workaround? This is what I came up with, will anybody find this useful?:
*Destroy()
this.visible = .f.
debugout this.windowstate
debugout this.nheight
debugout this.nwidth
debugout this.nleft
debugout this.ntop

*Moved()
if this.windowstate = this.nstate
	this.nleft = this.left
	this.ntop = this.top
endif

*Resize()
if this.windowstate = this.nstate
	this.nheight = this.height
	this.nwidth = this.width
	this.nleft = this.left
	this.ntop = this.top
else
	this.nstate = this.windowstate
endif
Next
Reply
Map
View

Click here to load this message in the networking platform