How to use wordwrap attribute in GUI?

How to use wordwrap attribute in GUI?

hitesha_n2
Not applicable
18 Views
2 Replies
Message 1 of 3

How to use wordwrap attribute in GUI?

hitesha_n2
Not applicable

[ FlexSim 18.1.2 ]

dummymodel.fsmI want to use wordwrap attribute in my GUI. I added the attribute in my GUI tree and added number data to it. I have given the value 1, as value 0 means there will be no text wrapping. But it is still not working for me. Can you please help me with this issue?

0 Likes
Accepted solutions (1)
19 Views
2 Replies
Replies (2)
Message 2 of 3

sam_stubbsYXX86
Community Manager
Community Manager
Accepted solution

The "wordwrap" attribute doesn't work for buttons. Instead create a node in the button called: style . Then create a subnode in the style node and call it: BS_MULTILINE (all caps). Then refresh your gui, and the button should word wrap.

As another good rule of thumb, instead of naming your button name with the longer text, keep the button name smaller, but use the "windowtitle" attribute to enter in the longer text.

Another route you may want to try, is have a shorter text for the actual button, but use the "tooltip" attribute to give longer descriptions when a user hovers over the button.

Message 3 of 3

hitesha_n2
Not applicable

Thank you for the answer @Sam Stubbs

0 Likes