trying to move text off the left edge of a table cell.
paragraphIndent only does the first line.
don't want to increase the height so padding doesn't sound right either.
what i'd like to do is myCell.rightMargin = 18.
any thoughts?
table cell margins
Re: table cell margins
Forum member · Dec 11, 2006sorry...
that should have been myCell.leftMargin = 18
Re: table cell margins
Support · Dec 11, 2006Hello,
It is not possible to set margins for the cell of the table. However, you can add any page elements to the cell of the table. You can use a Label to add text to the cell of the Label and offset the X coordinate of the Label to the amount equal to the desired left margin.
Following is the link to the Help Documentation on our web site that shows how to Add Page Elements to the Cell
of the table.
Thanks,
ceTe Software Support Team
Re: table cell margins
Forum member · Dec 12, 2006how is a label different from a textArea.
i tried using cell.addTextArea but wasn't clear how to control the positioning of the textArea.
is it supposed to be relative to the upper left of the cell?
are there known issues about positioning things in a cell?
many thanks,
Re: table cell margins
Support · Dec 12, 2006Hello,
Using a TextArea it will be very easy to take care of the overflow text which does not fit with in the height of the TextArea by using the GetOverflowTextArea method of the textarea object. Where as the Label do not have this method.
Yes, the page elements in a cell will be positioned relative to the upper left corner of the cell only. There are no known issues in positioning page elements in a cell.
Thanks,
ceTe Software Support Team.
Re: table cell margins
Forum member · Dec 14, 2006don't want to belabor this, but i'm struggling a bit.
setLabel and setTextArea work well unless the text flows to contains more lines than are allowed for by the preset label/area height.
Neither label nor area have that lovely behavior of a cell, which has a default height, but expands the row height when the content dictates (if the text wraps)
i could reset the height of the textArea and row if i could detect the line wrap, but i don't see where that's available.
any thoughts?
many thanks for all the help.
Re: table cell margins
Support · Dec 14, 2006Hello,
You can get the required height for the textArea by the GetRequiredHeight() method of the TextArea page element. You can reset the height of the TextArea to the value returned by the GetRequiredHeight() method. Following is the sample line of code.
MyTextArea.Height = MyTextArea.GetRequiredHeight()
It is not possible to get the required height for a label but you can reset the height if you know the height.
Thanks,
ceTe Software Support Team.