Bug in TCalenda

Bug in TCalenda

Postby Maurizio » Wed Dec 05, 2012 10:00 am

Antonio

there is a problem in tcalenda.prg , you cann see it in TESTCAL2.PRG
If you do a double click (quicky ) on a day of previous month , you have :

Application
===========
Path and name: C:\fwh_09\samples\testcal2.exe (32 bits)
Size: 1,840,128 bytes
Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 9445)
FiveWin Version: FWHX 12.06
Windows version: 5.1, Build 2600 Service Pack 3

Time from start: 0 hours 0 mins 1 secs
Error occurred at: 05/12/2012, 10:58:06
Error description: Error BASE/1082 Argument error: -
Args:
[ 1] = U
[ 2] = N 52


The problem is in lButtonUP Line 614
IF IsOverDay( ::hWnd, nRow, nCol ) .AND. Abs( ::nRowDbl - nRow ) <= HEIGHTDBLCLICK .AND. Abs( ::nColDbl - nCol ) <= WIDTHDBLCLICK

I solve with
IF HB_IsNumeric( ::nRowDbl) .AND. IsOverDay( ::hWnd, nRow, nCol ) .AND. Abs( ::nRowDbl - nRow ) <= HEIGHTDBLCLICK .AND. Abs( ::nColDbl - nCol ) <= WIDTHDBLCLICK


Regards Maurizio
www.nipeservice.com
User avatar
Maurizio
 
Posts: 796
Joined: Mon Oct 10, 2005 1:29 pm

Re: Bug in TCalenda

Postby Antonio Linares » Wed Dec 05, 2012 10:23 am

Maurizio,

Implemented this way, thanks!:

Code: Select all  Expand view
        IF ValType( ::nRowDbl ) == "N" .and. IsOverDay( ::hWnd, nRow, nCol ) .AND. ;
            Abs( ::nRowDbl - nRow  ) <= HEIGHTDBLCLICK .AND. Abs( ::nColDbl - nCol ) <= WIDTHDBLCLICK
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41315
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 81 guests