com a versao fwh1912 acontece isto:
com a versao fwh1903 funciona normal
com a versao fwh1903 funciona normal
FWH2008 | xHarbour | BCC74 | SQLRDD
Can you give the source code for creating of this BTNBMP?
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.bmpThanks. We will look into this now.
#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 nilBMP_PRIN BITMAP "c:\fwh\bitmaps\print3.bmp"
<= use this file... rename to prin.bmp with paint... save as BMPInstead, can you please send me the actual bmp file to me?
nageswaragunupudi <at> gmail <dot> com
Yes, I am able to reproduce the problem.
We will study and come back to you.

The problem is narrowed down to be between 1903 and 1906.
We are looking into.
if Len( aBmpRect ) > 4
uResize := aBmpRect[ 5 ]
endif
aBmpRect := oBtnRect:Modify( aBmpRect ):aRect AEval( aBmpRect, { |n,i| If( n != nil .and. n < 1.0, aBmpRect[ i ] := ROUND( n, 0 ), nil ) } ) 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