English
Forum

Calendar-Control

 

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
 
10/07/16  
 




E.T.
look time here:  [...] 
Perhaps. working the indeed with the Calendar or helps at least moreover
 
XProfan X3
Grüß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

 
10/10/16  
 




Jörg
Sellmeyer
only time so demand: the profaneigene Kalendercontrol reicht for your tack not from?
 
XProfan X3
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/10/16  
 




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.
 
10/11/16  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.859 Views

Themeninformationen

this Topic has 3 subscriber:

Ernst (3x)
Jörg Sellmeyer (1x)
E.T. (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie