TCalendar - ACTION clause, when is it invoked?

TCalendar - ACTION clause, when is it invoked?

Postby hua » Fri Dec 17, 2010 7: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
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

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

Postby Daniel Garcia-Gil » 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
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

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

Postby hua » Fri Dec 17, 2010 4: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
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

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

Postby Daniel Garcia-Gil » Fri Dec 17, 2010 5:01 pm

Hello

yes, please review testcal.prg, testcal2.prg and testcalr.prg inside samples folder
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 114 guests