After some time struggling with Declares and parameters types I managed to be able to drag objects with middle button (mouse wheel). (32 and 64 bits)
This is a normal behaviour for CAD software on Windows.
Just in case anyone could be interested I share this project with you:
[quote=255255:@Ramon SASTRE]After some time struggling with Declares and parameters types I managed to be able to drag objects with middle button (mouse wheel). (32 and 64 bits)
This is a normal behaviour for CAD software on Windows.
Just in case anyone could be interested I share this project with you:
I downloaded your project to study it to see if I can use that to detect right click out of MouseDown.[/quote]
IsContextualClick doesn’t work for you ?
At this moment I’m out of office in a workshop and I can not answer properly. But sure you can do the same I did width the middle button (wheel) with the right button. And as you say values of some parameters change. Using WindowProc in the example I shared Lmsg did the thing.
[code]WindowProc(Lwnd as Integer, Lmsg as uint32, Wparam as uInteger, Lparam as Integer) as Integer #if TargetWindows then
if Lmsg = &H207 then
'Mouse DOWN
xIni = Lparam and &Hffff
yIni = (Lparam and &Hffff0000) / &Hffff
x0 = window1.TextField1.Left
y0 = window1.TextField1.Top
mButton = True
elseif Lmsg = &H208 then
'Mouse UP
mButton = False
else
return CallWindowProc (LocalPrevWndProc, Lwnd, Lmsg, Wparam, Lparam)
end if
Hi, I am struggling with a crash and I suspect my own implementation could be the cause. I would be very interested in comparing it to yours, but the file you shared last year is unavailable now. Could you be so kind to share it again?