FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bug in TCalenda
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Bug in TCalenda
Posted: 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TCalenda
Posted: Wed Dec 05, 2012 10:23 AM
Maurizio,

Implemented this way, thanks!:

Code (fw): Select all Collapse
         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

Continue the discussion