>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
Borislav,
As far as I understand, flickering is because mouse is still down. See if it is what you need:
if This.Top < 100
DECLARE mouse_event IN Win32API;
INTEGER dwFlags, INTEGER dx,;
INTEGER dy, INTEGER cButtons,;
INTEGER dwExtraInfo
= mouse_event(0x0004, 0, 0, 0, 0)
CLEAR DLLS
this.Top = 100
ENDIF