| |
|
|
Georg Hovenbitzer | Hello together,
its ir Yes Real embarrassing this To ask but I come not behind.
i want check if one a Double click, be it left or right, on one deaktiviertes Editfeld power and this on one Mainwindow what with Window Style 8 + 16 + 512 + 1024 prepares watts.
can me there someone help ? |
|
|
| Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a) | 05/19/06 ▲ |
|
|
|
|
Frank Abbing | You must The Message WM_LBUTTONDBLCLK, or. WM_RBUTTONDBLCLK read. at that mittleren Click goes it through WM_MBUTTONDBLCLK, sofern this present is. |
|
|
| |
|
|
|
Georg Hovenbitzer | Hello Frank,
this have I attempts, but the come not on. I have somewhere time red, that not any Controls these Message Send and by me is it yes a deaktiviertes Edit area. have you got Perhaps one Piece code to that testing for me ? |
|
|
| Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a) | 05/19/06 ▲ |
|
|
|
|
| WM_NOTIFY isn't fundamentally staid, that's right.
there's too still whom way out into Fastmode. an Own wProc could The Message intercepting.
I zitier but too time from the Phorum: [...]
Author: Dieter Zornow 26.08.04 07:59 Hello carlo, I use following routine, The under all Windowsversionen sure functions. CompileMarkSeparationcirca these To benefit must The first whom focus to that entry bring otherwise must You first with linkem Click Mark. greetings from Bangkok Dieter |
|
|
| |
|
|
|
Frank Abbing | plainer is: CompileMarkSeparation You must The User Messages settle, so tappt im dunkeln WaitInput leave...
Hm, Waitinput processing but only Messages of Mainwindow. circa Control-Messages To process, must You tappt im dunkeln subclassen. |
|
|
| |
|
|
|
| Frank Abbing
circa Control-Messages To process, must You tappt im dunkeln subclassen. Womit we well at fastmode are... |
|
|
| |
|
|
|
Frank Abbing | really not, iF. only if You the Mainwindow subclassen want. |
|
|
| |
|
|
|
Sven Bader | means if I it with usermessages make becomes 513 and 514 recognized (left pressed/losgelassen), The Double click Message becomes never recognized. others wildly Konstruktionen with waitkey + getmessage + (%Message = 273) functions neither everywhere and are for programs with others inquire useless, because these then mostly not any more functions (have parallel none Buttonklick with wm_command More inquire can)
or functions with you the example? CompileMarkSeparation |
|
|
| |
|
|
|
| with the EasyVENT.dll and Include kannste too dead easy a Mausdoppelclick check [...] |
|
|
| |
|
|
|
Frank Abbing | the goes without Dll plenty leichter... circa Doppelklicks To receive must solely the CS_DBLCLKS Class-Style staid go. so as in the API-Help indeed standing. CompileMarkSeparation |
|
|
| |
|
|
|
Sven Bader | so goes it, thanks
my previous Variante: CompileMarkSeparationDef Key(1) !User32,GetAsyncKeyState
Def windowfrompoint(2) !USER32,WindowFromPoint
Def GetCursorPos(1) !USER32,GetCursorPos
cls
usermessages 16
Declare dbl&, dbl%,mousepos#,oldx%,oldy%
dim mousepos#,8
PROC Doppelklick
Parameters handle&
if (abs(key(1)>1) ) & (dbl% = 0) & (windowfrompoint(long(mousepos#,0),long(mousepos#,4)) = handle&)
dbl& = &gettickcount+400 Doppelklickzeit
dbl% = 1
oldx% = long(mousepos#,0)
oldy% = long(mousepos#,4)
elseif (abs(key(1)<2)) & (dbl% = 1) & (windowfrompoint(long(mousepos#,0),long(mousepos#,4)) = handle&)
dbl% = 2
case (&gettickcount > dbl&) : dbl% = 0
elseif (abs(key(1)>1)) & (dbl% = 2) & (&gettickcount < dbl&) & (windowfrompoint(long(mousepos#,0),long(mousepos#,4)) = handle&)
if ((abs(oldx% - long(mousepos#,0))<5) & (abs(oldy% - long(mousepos#,4))<5)) Maus maximal 5 Pixel verschoben
dbl% = 3
else
dbl% = 0
endif
elseif ((abs(key(1)>1)) & (dbl% = 2)) | (dbl% = 3)
dbl% = 0
endif
return if(dbl% = 3,1,0)
EndProc
whilenot (%umessage = 16)
waitinput
sleep 50
getcursorpos(mousepos#)
case Doppelklick(%hwnd) : print Doppelklick
endwhile
dispose mousepos#
|
|
|
| |
|
|
|
Frank Abbing | there would I The API-Variante absolutely vorziehen, because the User The Double click-Time Yes take on can. |
|
|
| |
|
|