bug BTNBMP

Re: bug BTNBMP

Postby MOISES » Sun Mar 22, 2020 8:42 pm

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
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: bug BTNBMP

Postby ukoenig » Sun Mar 22, 2020 8:46 pm

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: bug BTNBMP

Postby MOISES » Sun Mar 22, 2020 8:51 pm

Please, use the original resource.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: bug BTNBMP

Postby ukoenig » Sun Mar 22, 2020 9:14 pm

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  Expand view  RUN

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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: bug BTNBMP

Postby Silvio.Falconi » Mon Mar 23, 2020 10:57 am

So there is a problem on resources as I sad !!
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: bug BTNBMP

Postby Silvio.Falconi » Mon Mar 23, 2020 11:03 am

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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: bug BTNBMP

Postby karinha » Mon Mar 23, 2020 12:49 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7842
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: bug BTNBMP

Postby MOISES » Mon Mar 23, 2020 5:08 pm

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
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: bug BTNBMP

Postby nageswaragunupudi » Mon Mar 23, 2020 5:13 pm

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
User avatar
nageswaragunupudi
 
Posts: 10659
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: bug BTNBMP

Postby MOISES » Mon Mar 23, 2020 5:26 pm

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
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 66 guests