FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour action calendar error
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
action calendar error
Posted: Tue Mar 19, 2013 09: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 March-April 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

Continue the discussion