[Lazarus] Windows message WM_NCHitTest not working...
Justin Smyth
delphian at smythconsulting.net
Fri Mar 12 10:22:49 CET 2010
Thanks Guys i have found a way around this in my form i get it to call the
windows message itself when it detects Mouse Down & MouseMove ( on mousedown
set a variable to say move = true and in mousemove send off a windows
message something like this SendMessage (Handle, WM_NCHITTEST, 2, 0); )
Seems to work compaired it to the code i used in D12 , same effect ...
Justin Smyth
----- Original Message -----
From: "Luca Olivetti" <luca at wetron.es>
To: "Lazarus mailing list" <lazarus at lists.lazarus.freepascal.org>
Sent: Friday, March 12, 2010 7:26 PM
Subject: Re: [Lazarus] Windows message WM_NCHitTest not working...
En/na Paul Ishenin ha escrit:
> 12.03.2010 11:11, Justin Smyth wrote:
>> When i create forms that dont have the title bar i typically use the
>> windows message WM_NCHITTEST to capture the mouse movements but i cant
>> get it to work
>>
>>
>> anyone got any ideas - my form has no titlebar and all i want to do is
>> be able to click on it and move it.
>
> WM_NCHITTEST is not possible to implement cross-platform.
>
> Better if you will think about another solution than try to reuse a
> windows only feature in LCL application.
Under linux there's no need to do anything: just alt+drag anywhere on
the window and it will move.
Under window there's a recipe on how to hook messages in the wiki, but I
cannot access the wiki right now so I cannot give a link.
Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007
--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list