FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TCalendar - ACTION clause, when is it invoked?
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
TCalendar - ACTION clause, when is it invoked?
Posted: Fri Dec 17, 2010 07:25 AM

I notice we have new TCalendar class from FWH10.4.

While playing with it I notice whatever's assigned to DBLCLICK clause is correctly invoked when I double-click but nothing ACTION isn't invoked when I single-click. Did I misunderstood when ACTION will be invoked?

TIA

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: TCalendar - ACTION clause, when is it invoked?
Posted: Fri Dec 17, 2010 11:01 AM

Hello

the actions is launched with RETURN, the bAction will be evaluate when VK_RETURN has been pressed

TCalendar Class no accept Double Click (windows api restriction), this is simulate and launched with bLDblClick

TCalendar control is not a button to launch action with one "click", if you want launch action with a "click" you can simulate with bLClicked and bLButtonUp

Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: TCalendar - ACTION clause, when is it invoked?
Posted: Fri Dec 17, 2010 04:58 PM

Thanks Daniel. Any ready sample on how to do that? Plus, what's actually the step if I want to bold certain day or dates?

TIA

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: TCalendar - ACTION clause, when is it invoked?
Posted: Fri Dec 17, 2010 05:01 PM

Hello

yes, please review testcal.prg, testcal2.prg and testcalr.prg inside samples folder

Continue the discussion