A solution <Row-adjust> after adding a new Cell-BMP.

A solution <Row-adjust> after adding a new Cell-BMP.

Postby ukoenig » Fri Sep 19, 2008 7: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.

Image

regards
Uwe :lol:
Last edited by ukoenig on Fri Sep 19, 2008 9:16 pm, edited 2 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

Row - adjust

Postby ukoenig » Fri Sep 19, 2008 9: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 ?

Image

Code: Select all  Expand view

//------------------- 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 :lol:
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

Postby Antonio Linares » Fri Sep 19, 2008 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 53 guests