FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour BtnBmp in FwH 2.7
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
BtnBmp in FwH 2.7
Posted: Wed Jun 07, 2006 08:29 PM

Hi All,

yesterday i upgraded to fwH 2.7 for proper use with the latest xHarbour builder.

One of my applications has a main dialog with some BtnBmp on it, which are not placed on a ButtonBar.

When clicking on the dialog title a dotted line is painted around every button. To make this unwanted dots disappear i have to move the mouse cursor over all buttons.

Can anybody confirm this strange behaviour?

Regards,
Detlef

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: BtnBmp in FwH 2.7
Posted: Wed Jun 07, 2006 09:07 PM

Please take the time to build a reduced and self-contained sample of the problem.

EMG

Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
BtnBmp in FwH 2.7
Posted: Thu Jun 08, 2006 07:31 AM

Thanks Enrico,

Here you can find my example of a dialog with BtnBmp buttons:

http://www.d-hoefner.de/files/x-po.zip

I used the latest FvH 2.7 together with xHarbourBuilder of March 2006.

Regards,
Detlef

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
BtnBmp in FwH 2.7
Posted: Thu Jun 08, 2006 07:43 AM
Sorry, I wasn't able to run your sample:

xHarbour Compiler build 0.99.61 (SimpLex)
Copyright 1999-2006, http://www.xharbour.org http://www.harbour-project.org/
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
X-PO.c:
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.

Error X-PO.RC 23 13: Invalid bitmap format
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland


Error description: Error FiveWin/3 Cannot create Dialog Box:
Resource: DLG_START


EMG
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
BtnBmp in FwH 2.7
Posted: Thu Jun 08, 2006 08:07 AM

Enrico,

i had this problem too with Borland Resource Workshop.
But with xHarbour Builder i use Pelles C as Resource Editor which can handle this bitmap format.

I modified the 4 bitmap files to indexed 256 Windows colors.

http://www.d-hoefner.de/files/tmp.zip

Now brc can handle them. I tested this.
But the result is still the same.
When clicking the Dialog title the dotted lines appear.

Thanks for your time,
Detlef

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
BtnBmp in FwH 2.7
Posted: Thu Jun 08, 2006 08:31 AM
Ok, found! Just remove WS_TABSTOP style:

CONTROL "", 201, "TBtnBmp", 0, 25, 33, 27, 23
CONTROL "", 202, "TBtnBmp", 0, 59, 33, 27, 23
CONTROL "", 203, "TBtnBmp", 0, 108, 33, 27, 23
CONTROL "", 204, "TBtnBmp", 0x00000008, 169, 33, 27, 23


EMG
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
BtnBmp in FwH 2.7
Posted: Thu Jun 08, 2006 09:20 AM
EnricoMaria wrote:Ok, found! Just remove WS_TABSTOP style:

CONTROL "", 201, "TBtnBmp", 0, 25, 33, 27, 23
CONTROL "", 202, "TBtnBmp", 0, 59, 33, 27, 23
CONTROL "", 203, "TBtnBmp", 0, 108, 33, 27, 23
CONTROL "", 204, "TBtnBmp", 0x00000008, 169, 33, 27, 23


EMG


Hi Enrico,

you are right. :-)

And i can can state that you're a real Sherlock Holmes for FiveWin internals.

Thanks a lot.
Detlef
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
BtnBmp in FwH 2.7
Posted: Thu Jun 08, 2006 10:24 AM

Enrico,

Thanks as usual! :)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion