Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Move a Form not using its Titlebar or Caption
Message
 
To
26/09/2005 14:49:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01053156
Message ID:
01053187
Views:
18
Frederico,

In your form, put the following codes in the respective methods, events:
function load
	declare integer ReleaseCapture in WIN32API
	declare integer SendMessage in WIN32API integer, integer, integer, integer
endfunc

function mousedown
	lparameters nButton, nShift, nXCoord, nYCoord
	local lnHandle

	if nButton = 1
		ReleaseCapture()
		SendMessage(this.hwnd, 0x112, 0xF012,0)
	endif
endfunc
That will enable movement of the form from any point that has no object
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform