Postingan

Menampilkan postingan dari Juni, 2009

How to move a form without clicking on the title bar

Recently i was wondering how can i make a borderless form dragged by using a mouse, since the border is not visible, after a few moment in search, and voila, although it was a tips for a delphi app i tried it on lazarus. the only drawback is that it only applied for windows, i don't know wheter or not i works in lazarus the only code the should be written ReleaseCapture; SendMessage(Form1.Handle, WM_SYSCOMMAND, 61458, 0) ; When the event OnMouseDown fired, and don't forget to include uses windows on the top. and since it uses windows library this feature is not multi platform i am not finished in search how this behaviour can be applied on other platform, may be later i'll do some more research on this feature. But for now i'm still playing around with it