| |
|
|
Ernst | Hi, I must whom Double click evaluate, but I get no message ?
$H messages.ph
Window 100,300-600,500
Var cal&=Control("SysMonthCal32","",$54000000,200,40,178,194,%hwnd,0,%hinstance,$1)
while 1
getmessage
IF (%message = ~WM_LBUTTONDBLCLK) and (%mwnd = cal&)
print "OK"
endif
wend
end
~wm_rbuttondown can I inquire and ~wm_lbuttondown. can someone help ? Greeting serious |
|
|
| |
|
|
|
E.T. | look time here: [...] Perhaps. working the indeed with the Calendar or helps at least moreover |
|
|
| XProfan X3Grüße aus Sachsen... Mario WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte... | 10/08/16 ▲ |
|
|
|
|
Ernst | unfortunately No, I Yes no wm_lbuttondblclk-Message get, The I intercepting könnte; Perhaps or probably gibt's these message at Calender-control none. I Have it then over The Auswertung the at Doubleclick zweifachen wm_lbuttondown-Message Done.
{$iq}
Declare dc#, dcl&
Dim dc#,4
LONG dc#,0 = 0
dcl&= addr(dc#)
declare dtp#
dim dtp#,20
Declare date$
usermessages 3000
Window 100,300-600,500
Var cal&=Control("SysMonthCal32","",$54000000,200,40,178,194,%hwnd,0,%hinstance,$1)
~setWindowLong(cal&,~gwl_userData,~setWindowLong(cal&,~gwl_wndProc,procaddr(calProc,4)))
settimer ~GetDoubleClickTime()
while 1
Waitinput
IF (%umessage = 3000) or (%key = 13)
SendMessage(cal&,~MCM_GETCURSEL,0,dtp#)
date$ = stature$("00",word(dtp#,6)) + "." +stature$("00",word(dtp#,2)) + "." + stature$("0000",word(dtp#,0))
LONG dc#,0 = 0
break
ElseIf %wmtimer
LONG dc#,0 = 0
EndIf
EndWhile
killtimer
dispose dtp#
dispose dc#
print date$
waitkey
End
'**********************************************************************************************************
nProc calProc
parameters Wnd&, Msg&, wParam&, lParam&
global dcl&
if Msg& = ~WM_LBUTTONDOWN
IF LONG(dcl&,0)=0
LONG dcl&,0 = 1
Else
sendmessage(~getparent(wnd&),3000,0,0)
Return 0
EndIf
endif
return ~callWindowProc(~getWindowLong(wnd&,~gwl_userData),Wnd&, Msg&, wParam&, lParam&)
ENDPROC
|
|
|
| |
|
|
|
Jörg Sellmeyer | only time so demand: the profaneigene Kalendercontrol reicht for your tack not from? |
|
|
| |
|
|
|
Ernst | @Jörg fundamentally Yes, in the particular No: I have a Warenwirtschafts-software walk and bastle me self-contained Applikation moreover, where The items (under z.B. this Calender-control) almost ident his should, so The operating possible same run out can. |
|
|
| |
|
|