| |
|
|
 Ernst | ¡Hola, Yo muss el Haga doble clic en auswerten, pero yo bekomme no mensaje ?
$H messages.ph
Ventana 100,300-600,500
Var cal&=Control("SysMonthCal32","",$54000000,200,40,178,194,%hwnd,0,%hInstance,$1)
mientras que 1
getmessage
IF (%mensaje = ~WM_LBUTTONDBLCLK) and (%mwnd = cal&)
imprimir "OK"
endif
wend
end
~wm_rbuttondown kann Yo abfragen y ~wm_lbuttondown. kann me alguien helfen ? Saludo Ernst |
|
|
| |
|
|
|
 E.T. | Schau veces hier: [...]  Vlt. funzt el en efecto con el Kalender oder hilft wenigstens más  |
|
|
| 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... | 08.10.2016 ▲ |
|
|
|
|
 Ernst | desafortunadamente nein, como Yo sí no wm_lbuttondblclk-Message bekomme, el Yo abfangen könnte; tal vez oder wahrscheinlich gibt's esta mensaje beim Calender-control nada. Yo tener lo entonces en Auswertung el beim Doppelclick zweifachen wm_lbuttondown-Message hecho.
{$iq}
Declarar dc#, dcl&
Dim dc#,4
LONG dc#,0 = 0
dcl&= addr(dc#)
declarar dtp#
dim dtp#,20
Declarar datum$
usermessages 3000
Ventana 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()
mientras que 1
Waitinput
IF (%umessage = 3000) or (%key = 13)
SendMessage(cal&,~MCM_GETCURSEL,0,dtp#)
datum$ = format$("00",word(dtp#,6)) + "." +format$("00",word(dtp#,2)) + "." + format$("0000",word(dtp#,0))
LONG dc#,0 = 0
romper
ElseIf %wmtimer
LONG dc#,0 = 0
EndIf
EndWhile
killtimer
disponer dtp#
disponer dc#
imprimir datum$
waitkey
End
'**********************************************************************************************************
nProc calProc
parámetros Wnd&, Msg&, wParam&, lParam&
global dcl&
if Msg& = ~WM_LBUTTONDOWN
IF LONG(dcl&,0)=0
LONG dcl&,0 = 1
Más
sendmessage(~getparent(wnd&),3000,0,0)
Volver 0
EndIf
endif
volver ~callWindowProc(~getWindowLong(wnd&,~gwl_userData),Wnd&, Msg&, wParam&, lParam&)
ENDPROC
|
|
|
| |
|
|
|
 Jörg Sellmeyer | Nur veces así gefragt: Das profaneigene Kalendercontrol reicht para deine Zwecke no de? |
|
|
| |
|
|
|
 Ernst | @Jörg grundsätzlich sí, en el Besonderen nein: Yo una Warenwirtschafts-Software laufen y bastle me una separate Applikation dazu, wobei el Elemente (darunter z.B. dieses Calender-control) nahezu ident ser debería, así el Bedienung möglichst igual ablaufen kann. |
|
|
| |
|
|