Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How I can move TopLevel Form without TitleBar?
Message
From
19/01/2001 13:17:24
 
 
To
19/01/2001 06:43:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00465622
Message ID:
00465867
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform