FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour A solution <Row-adjust> after adding a new Cell-BMP.
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
A solution <Row-adjust> after adding a new Cell-BMP.
Posted: Fri Sep 19, 2008 07:02 PM
Hello,

i noticed, that after adding a new Cell-bmp
bigger than the old row-height,
the row-height is not adjusted to the new bmp-size.

Is there a method to call, after adding the bmp ?
I tested some like adjust and oBrw:nRowheight
but no change.
I think there should be a new row-height-calculation
inside the xbrowse-class.



regards
Uwe :-)
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.
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Row - adjust
Posted: Fri Sep 19, 2008 09:06 PM
Hello,
I added a few lines in my source to solve the problem
of different BMP-Hight and row-adjust.
I works fine now.
Is it possible to do the adjust-calculation in the xBrowse class ?



//------------------- PAINT CELL-BITMAP -----------//

FUNCTION xBNEWF5(oLbx0)
LOCAL oBmp1

oCol := oLbx0:aCols[ 1 ]:AddBmpFile(LOGO2)
oLbx0:aCols[ 1 ]:bBmpData := {|| oLbx0:nArrayAt }

DEFINE BITMAP oBmp1 FILENAME LOGO2
nBMPHight := oBmp1:nHeight()
oBmp1:End()
IF oLbx0:nRowHeight < nBMPHight
   oLbx0:nRowHeight := nBMPHight + 4
ENDIF

oLbx0:Refresh()

RETURN( NIL )


Regards
Uwe :-)
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.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
A solution &lt;Row-adjust&gt; after adding a new Cell-BMP.
Posted: Fri Sep 19, 2008 09:28 PM

Uwe,

We are reviewing the xbrowse version that was going to be published for 8.09.

We are going to review the way to implement your request too, thanks :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion