Page 1 of 1

TCalendar - ACTION clause, when is it invoked?

PostPosted: Fri Dec 17, 2010 7:25 am
by hua
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

Re: TCalendar - ACTION clause, when is it invoked?

PostPosted: Fri Dec 17, 2010 11:01 am
by Daniel Garcia-Gil
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

Re: TCalendar - ACTION clause, when is it invoked?

PostPosted: Fri Dec 17, 2010 4:58 pm
by hua
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

Re: TCalendar - ACTION clause, when is it invoked?

PostPosted: Fri Dec 17, 2010 5:01 pm
by Daniel Garcia-Gil
Hello

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