Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with Sizes while hidden...
Message
De
13/10/1999 19:51:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Problems with Sizes while hidden...
Divers
Thread ID:
00276117
Message ID:
00276117
Vues:
72
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform