question

Hitesha N2 avatar image
0 Likes"
Hitesha N2 asked Hitesha N2 commented

How to use wordwrap attribute in GUI?

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?

FlexSim 18.1.2
gui
dummymodel.fsm (16.1 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Sam Stubbs avatar image
1 Like"
Sam Stubbs answered Hitesha N2 commented

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.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Hitesha N2 avatar image Hitesha N2 commented ·

Thank you for the answer @Sam Stubbs

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.