action calendar error

action calendar error

Postby Silvio.Falconi » Tue Mar 19, 2013 9:16 am

I wish to show a small calendar to select a date ...

I wish return the value od dFecha and close the odlg...

I click on one day but then not close the calendar

I use this :

@ 10,100 GET oGet2 VAR dEnd ... bitmap"d_ca.bmp" action show_cal(dFechapres,oGet2)


Function show_cal(dFechapres,oControl)
Local oDlg, oCal
Local lOk := .f.
Local dFecha := Iif(Empty(dFechaPres), Date(), dFechaPres)
DEFINE DIALOG oDlg FROM 0, 0 TO 150, 170 PIXEL
@ 0, 0 CALENDAR oCal VAR dFecha OF oDlg PIXEL DAYSTATE size 85,75 ;
ACTION ( lOk := .t., oDlg:End())
ACTIVATE DIALOG oDlg ON INIT oCal:move(0,0)
if lOK
oControl:cText( oCal:dDate )
endif
return nil
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 95 guests