question

Kyle R2 avatar image
0 Likes"
Kyle R2 asked Jason Lightfoot answered

Wrapping Text in Custom GUI Edit Field

Hi,

I've been developing some custom GUIs, I'd like to be able to have an edit field on my GUI for an end user to type in answers to questions. Since some of the answers could be quite long I'd like their text to 'wrap' or scroll down through the edit field as they type, rather than keep scrolling to the right.

I've tried using the wordwrap attribute on the edit field (with a value of 1) but it seems to have no effect. I've attached a demo model to illustrate.

Any advice would be much appreciated.

Many thanks,

WordwrapGUIModel.fsm

FlexSim 23.0.9
guiwrap
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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

You can try changing the edit text window type to 8 and then adding these nodes (optional indent and visual flag and values)

1688142353820.png



1688142353820.png (2.6 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.

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.