BtnBmp in FwH 2.7

Post Reply
User avatar
Detlef Hoefner
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany
Contact:

BtnBmp in FwH 2.7

Post by Detlef Hoefner »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: BtnBmp in FwH 2.7

Post by Enrico Maria Giordano »

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

EMG
User avatar
Detlef Hoefner
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany
Contact:

Post by Detlef Hoefner »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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
User avatar
Detlef Hoefner
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany
Contact:

Post by Detlef Hoefner »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

Ok, found! Just remove WS_TABSTOP style:

Code: Select all

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
User avatar
Detlef Hoefner
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany
Contact:

Post by Detlef Hoefner »

EnricoMaria wrote:Ok, found! Just remove WS_TABSTOP style:

Code: Select all

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. :idea:

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

Thanks a lot.
Detlef
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

Thanks as usual! :)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply