disable wrapping of words in static text component inside gridpanel
Hi
I'm using static text components inside gridpanel. Now I noticed that in several cases the text, if consisting of several words, is broken into several lines both in the designer and at runtime.
Question: is there a way to tell a static text component to never wrap the text into several lines?
thanks, Peter
[337 byte] By [
ib93gass] at [2007-11-26 6:35:08]

# 1
Hi Peter,
Check if the width of the gridpanel has been set. In case the width property has a fixed value then the static text component would wrap the text content to fit the width of the gridpanel.
For example, below are the steps I followed:
1. Drag and drop a gridpanel
2. Drag and drop a staticText onto the gridpanel
3. In the text property of the staticText enter the following sentence "This is a static text in a gridpanel which has only one column"
4. It can be seen that the entire sentence is in one line
5. Now select the gridpanel and click on the ... button next to style property to open up the style dialog
6. Click on Position
7. Under size, set the width to 100 px
8. Click on OK
9. As can been the sentence is now displayed over 5 lines
Hope this helps
Cheers
Girish