bug BTNBMP

MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

Re: bug BTNBMP

Post by MOISES »

It is not the same bitmap.

F5 Añadir is missing.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: bug BTNBMP

Post by ukoenig »

It is a duplicate ( copy without the text ) to show the difference
F5 Añadir is missing.
is added as PROMPT :!:

REDEFINE BTNBMP oBtn1 ID 500 OF oDlg ;
RESOURCE "TI_ANADIR" ACTION oDlg:End()

REDEFINE BTNBMP oBtn2 ID 501 OF oDlg ;
RESOURCE "TI_ANAD1" ;
LEFT ;
ACTION oDlg:End() ;
PROMPT " F5 " + CRLF + " Añadir " :!:

regards
Uwe :D
Last edited by ukoenig on Sun Mar 22, 2020 8:51 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

Re: bug BTNBMP

Post by MOISES »

Please, use the original resource.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: bug BTNBMP

Post by ukoenig »

I found the problem ( bitmap resized / adjusted to buttonsize )
You will get a bad quality in case the button-resource < bitmap-resource
I adjusted the bitmap-resource-size and it works.
To keep the bitmaps just increase the button-resource-size

Image

bitmap-size adjusted ( with included text ).

Code: Select all

TI_ANADIR BITMAP 
{
 '42 4D F2 0B 00 00 00 00 00 00 36 04 00 00 28 00'
 '00 00 3C 00 00 00 21 00 00 00 01 00 08 00 00 00'
 '00 00 BC 07 00 00 12 0B 00 00 12 0B 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 80'
 '00 00 00 80 80 00 80 00 00 00 80 00 80 00 80 80'
 '00 00 C0 C0 C0 00 C0 DC C0 00 F0 CA A6 00 00 20'
 '40 00 00 20 60 00 00 20 80 00 00 20 A0 00 00 20'
 'C0 00 00 20 E0 00 00 40 00 00 00 40 20 00 00 40'
 '40 00 00 40 60 00 00 40 80 00 00 40 A0 00 00 40'
 'C0 00 00 40 E0 00 00 60 00 00 00 60 20 00 00 60'
 '40 00 00 60 60 00 00 60 80 00 00 60 A0 00 00 60'
 'C0 00 00 60 E0 00 00 80 00 00 00 80 20 00 00 80'
 '40 00 00 80 60 00 00 80 80 00 00 80 A0 00 00 80'
 'C0 00 00 80 E0 00 00 A0 00 00 00 A0 20 00 00 A0'
 '40 00 00 A0 60 00 00 A0 80 00 00 A0 A0 00 00 A0'
 'C0 00 00 A0 E0 00 00 C0 00 00 00 C0 20 00 00 C0'
 '40 00 00 C0 60 00 00 C0 80 00 00 C0 A0 00 00 C0'
 'C0 00 00 C0 E0 00 00 E0 00 00 00 E0 20 00 00 E0'
 '40 00 00 E0 60 00 00 E0 80 00 00 E0 A0 00 00 E0'
 'C0 00 00 E0 E0 00 40 00 00 00 40 00 20 00 40 00'
 '40 00 40 00 60 00 40 00 80 00 40 00 A0 00 40 00'
 'C0 00 40 00 E0 00 40 20 00 00 40 20 20 00 40 20'
 '40 00 40 20 60 00 40 20 80 00 40 20 A0 00 40 20'
 'C0 00 40 20 E0 00 40 40 00 00 40 40 20 00 40 40'
 '40 00 40 40 60 00 40 40 80 00 40 40 A0 00 40 40'
 'C0 00 40 40 E0 00 40 60 00 00 40 60 20 00 40 60'
 '40 00 40 60 60 00 40 60 80 00 40 60 A0 00 40 60'
 'C0 00 40 60 E0 00 40 80 00 00 40 80 20 00 40 80'
 '40 00 40 80 60 00 40 80 80 00 40 80 A0 00 40 80'
 'C0 00 40 80 E0 00 40 A0 00 00 40 A0 20 00 40 A0'
 '40 00 40 A0 60 00 40 A0 80 00 40 A0 A0 00 40 A0'
 'C0 00 40 A0 E0 00 40 C0 00 00 40 C0 20 00 40 C0'
 '40 00 40 C0 60 00 40 C0 80 00 40 C0 A0 00 40 C0'
 'C0 00 40 C0 E0 00 40 E0 00 00 40 E0 20 00 40 E0'
 '40 00 40 E0 60 00 40 E0 80 00 40 E0 A0 00 40 E0'
 'C0 00 40 E0 E0 00 80 00 00 00 80 00 20 00 80 00'
 '40 00 80 00 60 00 80 00 80 00 80 00 A0 00 80 00'
 'C0 00 80 00 E0 00 80 20 00 00 80 20 20 00 80 20'
 '40 00 80 20 60 00 80 20 80 00 80 20 A0 00 80 20'
 'C0 00 80 20 E0 00 80 40 00 00 80 40 20 00 80 40'
 '40 00 80 40 60 00 80 40 80 00 80 40 A0 00 80 40'
 'C0 00 80 40 E0 00 80 60 00 00 80 60 20 00 80 60'
 '40 00 80 60 60 00 80 60 80 00 80 60 A0 00 80 60'
 'C0 00 80 60 E0 00 80 80 00 00 80 80 20 00 80 80'
 '40 00 80 80 60 00 80 80 80 00 80 80 A0 00 80 80'
 'C0 00 80 80 E0 00 80 A0 00 00 80 A0 20 00 80 A0'
 '40 00 80 A0 60 00 80 A0 80 00 80 A0 A0 00 80 A0'
 'C0 00 80 A0 E0 00 80 C0 00 00 80 C0 20 00 80 C0'
 '40 00 80 C0 60 00 80 C0 80 00 80 C0 A0 00 80 C0'
 'C0 00 80 C0 E0 00 80 E0 00 00 80 E0 20 00 80 E0'
 '40 00 80 E0 60 00 80 E0 80 00 80 E0 A0 00 80 E0'
 'C0 00 80 E0 E0 00 C0 00 00 00 C0 00 20 00 C0 00'
 '40 00 C0 00 60 00 C0 00 80 00 C0 00 A0 00 C0 00'
 'C0 00 C0 00 E0 00 C0 20 00 00 C0 20 20 00 C0 20'
 '40 00 C0 20 60 00 C0 20 80 00 C0 20 A0 00 C0 20'
 'C0 00 C0 20 E0 00 C0 40 00 00 C0 40 20 00 C0 40'
 '40 00 C0 40 60 00 C0 40 80 00 C0 40 A0 00 C0 40'
 'C0 00 C0 40 E0 00 C0 60 00 00 C0 60 20 00 C0 60'
 '40 00 C0 60 60 00 C0 60 80 00 C0 60 A0 00 C0 60'
 'C0 00 C0 60 E0 00 C0 80 00 00 C0 80 20 00 C0 80'
 '40 00 C0 80 60 00 C0 80 80 00 C0 80 A0 00 C0 80'
 'C0 00 C0 80 E0 00 C0 A0 00 00 C0 A0 20 00 C0 A0'
 '40 00 C0 A0 60 00 C0 A0 80 00 C0 A0 A0 00 C0 A0'
 'C0 00 C0 A0 E0 00 C0 C0 00 00 C0 C0 20 00 C0 C0'
 '40 00 C0 C0 60 00 C0 C0 80 00 C0 C0 A0 00 F0 FB'
 'FF 00 A4 A0 A0 00 80 80 80 00 00 00 FF 00 00 FF'
 '00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'
 '00 00 FF FF FF 00 FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF A4 52 52 4A 52 4A 52 4A 4A 52 52 4A 52'
 '52 4A 52 4A 4A 52 52 52 52 52 4A FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF A4'
 '09 AE 09 AE 09 09 09 09 09 AE 09 09 AE 09 09 09'
 '09 09 AE 09 09 AE 52 FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF A4 09 FF 09 FF'
 '09 09 FF 09 FF 09 FF 09 FF 09 09 FF F6 FF 09 B6'
 '09 09 52 FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF A4 FF 52 AD FF 53 52 52 53'
 '52 FF 52 52 FF 53 52 52 52 52 FF 09 F6 09 52 FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF A4 FF AD FF FF 09 FF FF FF 52 FF 52 FF'
 'FF 09 FF FF FF 52 FF FF FF 09 4A FF FF FF 00 FF'
 'FF FF FF FF 00 FF 00 FF FF FF 00 FF FF 00 00 00'
 '00 FF FF 00 00 00 00 FF 00 FF 00 FF FF FF FF A4'
 'FF FF FF FF 09 09 09 09 52 FF FF FF FF 09 09 09'
 '09 52 FF FF 09 09 52 FF FF FF 00 FF FF FF FF FF'
 '00 FF 00 FF FF FF 00 FF 00 FF FF FF 00 FF 00 FF'
 'FF FF 00 FF 00 FF 00 FF FF FF FF A4 FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 09'
 'F6 09 4A FF FF FF FF 00 00 00 00 00 FF FF 00 FF'
 'FF FF 00 FF 00 FF FF FF 00 FF 00 FF FF FF 00 FF'
 '00 FF 00 FF FF FF FF A4 FF A4 52 FF 53 52 52 53'
 '52 FF 53 09 FF 53 52 52 53 52 FF 09 F6 09 52 FF'
 'FF FF FF 00 FF FF FF 00 FF FF 00 FF FF FF 00 FF'
 'FF 00 00 00 00 FF 00 FF FF FF 00 FF 00 FF 00 FF'
 'FF FF FF A4 FF AD FF FF 09 FF FF FF 52 FF 09 52'
 'FF 09 FF FF FF 52 FF FF 09 AE 52 FF FF FF FF 00'
 'FF FF FF 00 FF FF 00 00 FF FF 00 FF FF FF FF FF'
 '00 FF 00 FF FF FF 00 FF 00 FF 00 FF FF FF FF A4'
 'FF FF FF FF 09 09 09 09 52 FF FF FF FF 09 09 09'
 '09 52 FF FF 09 09 52 FF FF FF FF FF 00 FF 00 FF'
 'FF FF 00 FF 00 00 FF FF FF 00 00 00 FF FF FF 00'
 '00 00 00 FF 00 FF 00 00 FF FF FF A4 FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'F6 09 4A FF FF FF FF FF 00 FF 00 FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 FF'
 'FF FF FF FF FF FF FF A4 FF 52 52 AD 52 52 FF 53'
 '52 52 52 52 52 52 52 52 53 52 FF FF F6 09 52 FF'
 'FF FF FF FF FF 00 FF FF FF FF 00 FF 00 00 FF FF'
 'FF FF FF FF FF FF FF FF FF FF 00 FF FF FF FF FF'
 'FF FF FF A4 FF AD 52 09 FF 09 FF 09 FF FF FF FF'
 'FF FF FF FF FF 52 FF FF 09 09 52 FF FF FF FF FF'
 'FF 00 FF FF FF FF FF 00 00 FF 00 FF FF FF FF FF'
 'FF FF FF FF FF FF 00 FF 00 FF FF FF FF FF FF A4'
 'FF FF FF FF FF FF FF 09 09 09 09 09 09 09 09 09'
 '09 52 FF FF FF 09 4A FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF A4 FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF 09 52 FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF A4 FF 52 09 09 52 A4 FF 53'
 '52 52 52 52 52 52 52 52 53 52 FF FF FF 09 52 FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF A4 FF AD 09 FF FF AD FF 09 FF FF FF FF'
 'FF FF FF FF FF 52 FF FF FF 09 52 FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF A4'
 'FF FF FF FF FF FF FF 09 09 09 09 09 09 09 09 09'
 '09 52 FF 09 FF AE 4A FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF A4 FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF B7'
 '09 09 52 FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF A4 FF 53 09 52 52 AD FF 53'
 '52 52 52 52 52 52 52 52 52 52 FF 09 F6 09 52 FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF 00 FF FF FF'
 'FF FF FF 00 00 00 FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF A4 FF 09 FF 09 FF FF FF 09 FF FF FF FF'
 'FF FF FF FF FF 52 09 F6 09 AD 52 FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF 00 FF FF FF FF FF 00 FF'
 'FF FF 00 FF FF FF FF FF FF FF FF FF FF FF FF A4'
 'FF FF FF FF FF FF FF 09 09 09 09 09 09 09 09 09'
 '09 52 F6 09 AE AD 4A FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF 00 FF FF FF FF FF FF FF FF FF 00 FF'
 'FF FF FF FF FF FF FF FF FF FF FF A4 FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF 09 F6 09 09'
 'AD AD 52 FF FF FF FF FF FF FF FF FF FF FF FF FF'
 '00 FF FF FF FF FF FF FF FF FF 00 FF FF FF FF FF'
 'FF FF FF FF FF FF FF A4 FF FF FF FF FF FF FF 53'
 '52 52 52 52 52 52 52 FF FF 09 AE AD A5 5B 52 FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 00'
 'FF FF 00 FF FF FF 00 FF FF FF FF FF FF FF FF FF'
 'FF FF FF A4 FF 52 52 52 53 52 FF 09 FF FF FF FF'
 'FF FF 52 FF 52 41 0A 41 00 49 41 FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF 00 FF FF FF FF FF 00 00'
 '00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF A4'
 'FF 52 FF FF 09 FF FF 09 09 09 09 09 09 09 52 FF'
 'AD FF 09 09 AD 52 FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF 00 FF FF FF FF FF 00 FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF A4 FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF AD F6 09 AD'
 '52 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 '00 FF FF FF FF FF 00 FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF A4 FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF AD 09 AD 52 FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 00'
 '00 FF 00 00 00 00 00 FF FF FF FF FF FF FF FF FF'
 'FF FF FF A4 FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF AD AD 52 FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF A4'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'AD 52 FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF A4 A4 A4 A4 A4'
 'A4 A4 A4 A4 A4 A4 A4 A4 A4 A4 A4 A4 A4 FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF'
 'FF FF'
}
 
Please, use the original resource.
Another test deleting the text inside the bitmap-resource
and painting the image with double size of the button-resource.
The painting / resizing is ok like You can see.
Resizing the included text You will reduce the quality.
Better using PROMPT with a defined font.

Image

testing 2 bmp-resources normal and oversized

Image

regards
Uwe :D
Last edited by ukoenig on Wed Mar 25, 2020 8:45 am, edited 3 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: bug BTNBMP

Post by Silvio.Falconi »

So there is a problem on resources as I sad !!
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: bug BTNBMP

Post by Silvio.Falconi »

MOISES wrote: No Silvio, the code and sample shows perfect under FW 14.14.

.RC FILE is for WorkShop or MVSC, not pelles.

But you can try to build via buildh mycode.prg

Thank you.
I'd like to know how do you run workshops on 64bit computers, I have bcc7 and 10
on these package I not habe workshop, there is workshop 64 bit?

I Use PellesC or ResEdit

I not have 14.14 release but the btnbmp is changed many times and on 18.19 Nages made a big modification ( readimage..)
eading the oldest Uwe message there is an error on resources
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: bug BTNBMP

Post by karinha »

João Santos - São Paulo - Brasil
MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

Re: bug BTNBMP

Post by MOISES »

Thank you.

The error occurrs when RESOURCE Control is smaller than image.

As a workarround, I make the resource as the image, and now shows Good.

In the past, FWH handled it properly, but not anymore.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: bug BTNBMP

Post by nageswaragunupudi »

Please do not waste the time of Mr. Moises.
He pointed out that with the same code FWH1412 displayed the bitmap correctly whereas current versions of FWH do not.
His point is correct.
The change in the painting behavior of BtnBmp took place after FWH1412 before March 2015 and remains like that till today.
Image
It is now for the FWH team to fix this issue and we are looking into this.
Regards

G. N. Rao.
Hyderabad, India
MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

Re: bug BTNBMP

Post by MOISES »

Thank you for your help. Hope you are well and out of coronavirus.

In this case the temporary solution is simple: I just make the button size and the image the same.

However, FWH has also changed the way the resources are painted, namely how the sizes and contents of the LTEXT/RTEXT,/TEXT are shown. Sometimes the text is now cut, because it takes up more space in the painting, compared to what was previously.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Post Reply