Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving _Screen In MouseMove
Message
From
27/04/2007 15:06:28
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01220530
Message ID:
01220547
Views:
15
>I have a simulated Titlebar class attached to _Screen.
>I have the follwing methods:
>
>
>
>* Mouse Down
>IF nButton = 1
>
>	IF _Screen.WindowState = 0
>		
>		_Screen.LockScreen = .T.
>	
>	ENDIF
>
>ENDIF
>
>* Mouse Move
>IF nButton = 1
>
>	IF _Screen.WindowState = 0
>		
>		_Screen.Move(nXCoord, nYCoord)
>	
>	ENDIF
>
>ENDIF
>
>* Mouse Up
>IF nButton = 1
>
>	IF _Screen.WindowState = 0
>		
>		_Screen.LockScreen = .F.
>	
>	ENDIF
>
>ENDIF
>
>
>
>The screen moves, but it is really ugly. Anyone know the right way to do this?

Have you tried the various Drag-related methods?

Another thing worth trying would be to put a DOEVENTS right after _Screen.Move in .MouseMove
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform