Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moveable forms with no titlebar
Message
From
03/06/2004 04:30:49
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00909485
Message ID:
00909487
Views:
8
Try this
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN


DEFINE CLASS form1 AS form


	Top = 0
	Left = 0
	Height = 250
	Width = 375
	DoCreate = .T.
	Caption = "Form1"
	TitleBar = 0
	Name = "Form1"


	PROCEDURE Init
		Declare ReleaseCapture in "user32"
		Declare long SendMessage in "user32" long hwnd, long wMsg, long wParam, long lParam
	ENDPROC


	PROCEDURE MouseDown
		LPARAMETERS nButton, nShift, nXCoord, nYCoord
		if nButton = 1 
		   ReleaseCapture()
		   SendMessage(this.hwnd, 0x112, 0xF012, 0x0)
		endif
	ENDPROC


ENDDEFINE
>is it possible to have moveable forms with no titlebar?
Previous
Reply
Map
View

Click here to load this message in the networking platform