Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How I can move TopLevel Form without TitleBar?
Message
De
19/01/2001 13:17:24
 
 
À
19/01/2001 06:43:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00465622
Message ID:
00465867
Vues:
17
>TopLevel Form and Screen.visible=.F.

If you want to move the screen you really should leave the title bar. Otherwise, you can show it when you need it:
oForm = CREATEOBJECT('MyNoTitleBarForm')
oForm.Show(1)
DEFINE CLASS MyNoTitleBarFOrm AS Form
	titlebar = 0
	autocenter = .T.
	PROCEDURE mousemove
	LPARAMETERS nButton, nShift, nXCoord, nYCoord
	with this
		do case
			case nYCoord > 4 and .TitleBar = 0
			case nYCoord > 4
				lnWidth = .Width
				.Top = .Top + sysmetric(9)
				.TitleBar = 0
				.Width = lnWidth
			case nYCoord <= 4 and .TitleBar = 1
			otherwise
				lnWidth = .Width
				.Top = .Top - sysmetric(9)
				.TitleBar = 1
				.Width = lnWidth
			endcase
		endwith
	endproc
enddefine
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform