Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form moving
Message
From
22/06/2009 13:37:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01407630
Message ID:
01407637
Views:
49
>Is there a way to limit form to be moved above some point?
>Like when you dock a toolbar on top of the _screen and you can't move the form below it.
>I tried to put in Moved event this.Top = something but if tje use holds the mouse button and continue drag the mouse there is a very ugly flickering.
>TIA
* Form.Moved()
DoDefault()
if This.Left < 0
	This.Left = 0
endif
The result looks weird, but the user can't move the form beyond the left edge, in this case.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform