FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bug in latest FWH
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in latest FWH
Posted: Mon Nov 27, 2006 03:16 PM
The following sample bombs out with an error:

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oWnd, oBar

    DEFINE WINDOW oWnd

    DEFINE BUTTONBAR oBar OF oWnd 3D

    DEFINE BUTTON;
           OF oBar;
           FILE "C:\FWH\BITMAPS\16x16\close.bmp";
           ACTION oWnd:End();
           TOOLTIP "Close"

    ACTIVATE WINDOW oWnd

    RETURN NIL


This is the error:

Error BASE/1066 Argument error: conditional


This is the call stack:

Stack Calls
===========
Called from: BTNBMP.PRG => TBTNBMP:PAINT(0)
Called from: BTNBMP.PRG => (b)TBTNBMP:TBTNBMP(0)
Called from: BTNBMP.PRG => TBTNBMP:DISPLAY(0)
Called from: CONTROL.PRG => TBTNBMP:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(0)
Called from: => UPDATEWINDOW(0)
Called from: WINDOW.PRG => TWINDOW:ACTIVATE(0)
Called from: BUG3.prg => MAIN(18)


EMG
Posts: 6
Joined: Thu Oct 13, 2005 03:41 PM
Bug in latest FWH
Posted: Mon Nov 27, 2006 06:16 PM

Enrico,

Your sample works fine for me...
fwh 2.8 + xHarbour builder oct. 2006

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in latest FWH
Posted: Mon Nov 27, 2006 06:23 PM

Yes, I know it was working fine with Oct 2006 build. The bug is in the latest, Nov 2006.

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bug in latest FWH
Posted: Tue Nov 28, 2006 08:16 AM

Enrico,

Please add this line:

METHOD Paint() CLASS TBtnBmp

...

DEFAULT ::lTransparent := .f. //this!

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in latest FWH
Posted: Tue Nov 28, 2006 08:25 AM

Antonio, I just found that if I copy/paste TBtnBmp class inside my sample PRG then it works fine without any changes. It seems that the source code is different from what it is in the LIB.

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in latest FWH
Posted: Tue Nov 28, 2006 08:39 AM

Ok, it seems that your fix did the trick anyway.

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bug in latest FWH
Posted: Tue Nov 28, 2006 08:47 AM

Enrico,

Yes, you are right. Somehow the latest Class TBtnBmp didn't go into the LIB. We are going to publish the FWH build again. Thanks,

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Continue the discussion