Page 1 of 1
BtnBmp in FwH 2.7
Posted: Wed Jun 07, 2006 8:29 pm
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
Re: BtnBmp in FwH 2.7
Posted: Wed Jun 07, 2006 9:07 pm
by Enrico Maria Giordano
Please take the time to build a reduced and self-contained sample of the problem.
EMG
Posted: Thu Jun 08, 2006 7:31 am
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
Posted: Thu Jun 08, 2006 7:43 am
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
Posted: Thu Jun 08, 2006 8:07 am
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
Posted: Thu Jun 08, 2006 8:31 am
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
Posted: Thu Jun 08, 2006 9:20 am
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.
And i can can state that you're a real Sherlock Holmes for FiveWin internals.
Thanks a lot.
Detlef
Posted: Thu Jun 08, 2006 10:24 am
by Antonio Linares
Enrico,
Thanks as usual!