Imagem em BTNBMP
Imagem em BTNBMP
com a versao fwh1912 acontece isto:
com a versao fwh1903 funciona normal
com a versao fwh1903 funciona normal
FWH2008 | xHarbour | BCC74 | SQLRDD
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Imagem em BTNBMP
Can you give the source code for creating of this BTNBMP?
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Imagem em BTNBMP
Code: Select all
tbtnbig.prg
#include "FiveWin.ch"
function Main()
local oDlg
DEFINE DIALOG oDlg FROM 4, 4 TO 10, 28 TITLE "test"
@ 1, 1 BTNBMP OF oDlg SIZE 40, 13 PIXEL 2007 NOBORDER PROMPT "Imprimir" LEFT RESOURCE "BMP_PRIN" ACTION (alert("teste"), oDlg:End()) // size 40 bmpBIG(fhw1912) # (fhw1903 OK)
@ 20, 1 BTNBMP OF oDlg SIZE 42, 13 PIXEL 2007 NOBORDER PROMPT "Imprimir" LEFT RESOURCE "BMP_PRIN" ACTION (alert("teste"), oDlg:End()) // size 42 OK
ACTIVATE DIALOG oDlg CENTERED
return nil
tbtnbig.rc
BMP_PRIN BITMAP "prin.bmp"
rename prin.bmp
FWH2008 | xHarbour | BCC74 | SQLRDD
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Imagem em BTNBMP
Tried with this program:
rc file
result:
We are not able to reproduce the problem with this sample.
Can you please modify the test program or rc file suitable to help us to reproduce the problem and solve the issue.
Code: Select all
#include "fivewin.ch"
function Main()
local oDlg
DEFINE DIALOG oDlg FROM 4, 4 TO 10, 28 TITLE FWVERSION
@ 1, 1 BTNBMP OF oDlg SIZE 40, 13 PIXEL 2007 NOBORDER PROMPT "Imprimir" LEFT RESOURCE "BMP_PRIN" ACTION (alert("teste"), oDlg:End()) // size 40 bmpBIG(fhw1912) # (fhw1903 OK)
@ 20, 1 BTNBMP OF oDlg SIZE 42, 13 PIXEL 2007 NOBORDER PROMPT "Imprimir" LEFT RESOURCE "BMP_PRIN" ACTION (alert("teste"), oDlg:End()) // size 42 OK
ACTIVATE DIALOG oDlg CENTERED
return nil
Code: Select all
BMP_PRIN BITMAP "c:\fwh\bitmaps\print3.bmp"
We are not able to reproduce the problem with this sample.
Can you please modify the test program or rc file suitable to help us to reproduce the problem and solve the issue.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Imagem em BTNBMP
nageswaragunupudi
<= use this file... rename to prin.bmp with paint... save as BMP
<= use this file... rename to prin.bmp with paint... save as BMP
FWH2008 | xHarbour | BCC74 | SQLRDD
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Imagem em BTNBMP
Instead, can you please send me the actual bmp file to me?
nageswaragunupudi <at> gmail <dot> com
nageswaragunupudi <at> gmail <dot> com
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Imagem em BTNBMP
Yes, I am able to reproduce the problem.
We will study and come back to you.
We will study and come back to you.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Imagem em BTNBMP
ok, thank you
BMP_PRIN BITMAP "E:\fwh1912\bitmaps\16dbgbrk.bmp"
BMP_PRIN BITMAP "E:\fwh1912\bitmaps\16dbgbrk.bmp"
FWH2008 | xHarbour | BCC74 | SQLRDD
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Imagem em BTNBMP
The problem is narrowed down to be between 1903 and 1906.
We are looking into.
We are looking into.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Imagem em BTNBMP
Thanks for pointing out this bug. Fixed for the next release.
For versions FWH1906, FWH1912 and FWH2002 we request the users to apply this fix to the btnbmp.prg:
Please locate these lines in the method PaintBitmap()
You will find these lines at line No.1635 in FWH2002 and FWH1912 and at line No.1624 in FWH1906.
Please insert this line of code:
in between "endif" and "aBmpRect := ..."
After insertion, the revised code should look like this:
Regret the inconvenience.
For versions FWH1906, FWH1912 and FWH2002 we request the users to apply this fix to the btnbmp.prg:
Please locate these lines in the method PaintBitmap()
Code: Select all
if Len( aBmpRect ) > 4
uResize := aBmpRect[ 5 ]
endif
aBmpRect := oBtnRect:Modify( aBmpRect ):aRect
Please insert this line of code:
Code: Select all
AEval( aBmpRect, { |n,i| If( n != nil .and. n < 1.0, aBmpRect[ i ] := ROUND( n, 0 ), nil ) } )
After insertion, the revised code should look like this:
Code: Select all
if Len( aBmpRect ) > 4
uResize := aBmpRect[ 5 ]
endif
AEval( aBmpRect, { |n,i| If( n != nil .and. n < 1.0, aBmpRect[ i ] := ROUND( n, 0 ), nil ) } )
aBmpRect := oBtnRect:Modify( aBmpRect ):aRect
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India