Game Development Community

Text in GuiMLTextCtrl crashes TGB

by Scott Johnson · in Torque Game Builder · 07/20/2006 (10:18 pm) · 0 replies

At least for me it is..

A short repro.. I try to provide an actual code sample if no one can easily follow this:

Make a new GUI.

place a GuiScrollCtrl onto GuiControl.
place the GuiMLTextCtrl onto the GuiScrollCtrl

Arrange the controls in a decent fashion on the screen.

Give the GuiMLTextCtrl the following text: (paste it in twice).

The standard Lorem Ipsum passage, used since the 1500s\n\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Try to save the GUI, Buffer Overrun.. TGB Crash.

So I got smart , thought maybe it was an editor issue.. so I assign the .text via code in the onWake event of my control. It doesn't show the text in runtime, however when I click on the GuiMLTextCtrl in the GUI Designer, the onWake fires, and loads the text.

But still get the same crash as above (since the text is visible in the designer).

EDIT:
Is there any other control that will allow multiple line display of text?