BtnBmp in FwH 2.7

BtnBmp in FwH 2.7

Postby Detlef Hoefner » Wed Jun 07, 2006 8: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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Re: BtnBmp in FwH 2.7

Postby Enrico Maria Giordano » Wed Jun 07, 2006 9:07 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8701
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

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

Postby Enrico Maria Giordano » Thu Jun 08, 2006 7: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
User avatar
Enrico Maria Giordano
 
Posts: 8701
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Detlef Hoefner » Thu Jun 08, 2006 8: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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Postby Enrico Maria Giordano » Thu Jun 08, 2006 8:31 am

Ok, found! Just remove WS_TABSTOP style:

Code: Select all  Expand view
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
Enrico Maria Giordano
 
Posts: 8701
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Detlef Hoefner » Thu Jun 08, 2006 9:20 am

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

Code: Select all  Expand view
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
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Postby Antonio Linares » Thu Jun 08, 2006 10:24 am

Enrico,

Thanks as usual! :)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42052
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 53 guests