| | | | Browse by category |
Article ID: 853
Last updated: 05 Feb, 2008
Problem
My table will not accept data because the row height is not sufficient.
Cause
There was no check to see how big the cell was before the data was put in there.
Action
In the constructor for the class that contains the table, after you have done a show() on the Table, then use the code below to figure out how big the cell needs to be.
My table will not accept data because the row height is not sufficient.
Cause
There was no check to see how big the cell was before the data was put in there.
Action
In the constructor for the class that contains the table, after you have done a show() on the Table, then use the code below to figure out how big the cell needs to be.
// This code is used to figure out how big Row 3 is going to be made
zPane temp( this, new
zSizeWithParent );
temp.canvas()->lock();
zFont foo( SystemFixed
);
temp.canvas()->pushFont(
&foo );
zDimension Size( temp.canvas()->getTextDim(X,
1) );
tbl->setRowHeight( 1,100,
Size.height() + 6 );
temp.canvas()->popFont();
temp.canvas()->unlock();
// End of Code to fugure out how high to set the Row.
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 853
Last updated: 05 Feb, 2008
Revision: 1
Views: 2742
Posted: 02 Sep, 1997 by
Dean J.
Updated: 05 Feb, 2008 by
Dean J.
Others in this category
Powered by KBPublisher (Knowledge base software)