i want a textbox to show a paragrpah of text, how???

Started by Joseph, Sun 20/02/2011 21:55:52

Previous topic - Next topic

Joseph

Howdee dudes!

How do I write so that I can put paragraph of text into a textbox in AGS right now I really dont know how, i looked in manual and coultn find how?

somthing like txtTurtleMenu.Text = "insert text here-insert text here-insert text here-insert text here-insert text here";

just imagine its a huge paragraph of text. how do i break that line up there so i can make it a paragraph with breaks where i want? if i do that code, the text goes in 1 line all the way and goes outside my textbox border like its crazy.

please help!???  :) :)
Spread the love...One.Turtle.At.A.Time.
http://www.youtube.com/watch?v=y0A77rohcyg

barefoot

Hi

I use this: [ to make a new line.  And this: [[ to make a paragraph.

Example:

Code: ags

 cEgo.Say("Hello, I am wizard Manga.[ How do you do. [[ I am well thank you");


Produces this:
Hello, I am wizard Manga.
How do you do.

I am well thank you.


I use it  for Say and Display options. Not sure about inside a text box, depends what you are doing.

barefoot



I May Not Be Perfect but I Have A Big Heart ..

Khris

If you need the text to be editable then you're out of luck.*
If you just need to display text, use a label. They wrap text automatically.

*You'd have to code your own editor.

SMF spam blocked by CleanTalk