on 07-16-2004 8:28 PM
Hi
Is it possible to wrap the text in the header of a Table UIElement.Whenever a column heading is created it keeps extending on one single line. Any suggestions.
ravi
Hi Ravi,
the only available UI element for a table column header (see IWDTableColumn) is a caption (see IWDCaption). Forget about TextViews or Labels, you simply can't use them here.
A caption does not support wrapping or line breaks yet, so there's no possibility to get multiline headers.
The table column will always be wide enough to display the header text in one single line.
Hope that helps.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
True, The only element youcan use is a Caption.
If you want to wrap the data on it there is no direct option but you could try binding the caption to a context and manually adding a '\n' where you want to split it to another line.
I have tried this in many places and it has worked.
Regards.
Balaji
Please give a try with one of the following options..
A similar post is also available at
<u>Option 1</u>
1.Set the layout property of the UI element container to be GridLayout or MatrixLayout.
2.Enable the "wrapping" property of Label or TextView to "true"
3.Set the "width" property of the UI Element's(label/TV) Layout data to <integer>px [eg: 100px]
3.Build and Deploy
<u>Option 2</u>
This option is only applicable for Labels. But for any Layout.
1.Set the "width" property of the UI Element(label/TV) to <integer>px [eg: 100px]
2.Enable the "wrapping" property of Label or TextView to "true"
3.Build and Deploy
Thanks and Regards,
Sam Mathew
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.