Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / wrap text on the screen

Author
Message
2D Analyst
AGK Developer
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 23rd Oct 2012 00:53
Is there a way to wrap text on the screen?

I want to display a long set of instruction for the users to read and do not want the user to scroll right to read the full text. Is there a command to wrap the text, so that if the text x length is too long...it'll move to the next line?
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 23rd Oct 2012 00:59
i belive there is a bunch of them in the thread usefull comunity functions that is an stickky above.

Alot of talented coders have made some cool functions there.

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
2D Analyst
AGK Developer
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 23rd Oct 2012 00:59
Nevermind... I found the SetTextMaxWidth command.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 23rd Oct 2012 01:59
I found an oddity in the SetTextMaxWidth command. You want to set the actual text string AFTER you use the SetTextMaxWidth command. If you set the string and then use the command, it doesn't always 'take'. It doesn't know that it should retroactively apply the display width limitation.

Cheers,
Ancient Lady
AGK Community Tester
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 23rd Oct 2012 02:31
Quote: "If you set the string and then use the command, it doesn't always 'take'"


If you still get this in 108 then let me know, hopefully I've fixed it.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 23rd Oct 2012 16:20
Paul, I'll try to test it next week. I'm not at home now (helping out taking care of my father).

Cheers,
Ancient Lady
AGK Community Tester

Login to post a reply

Server time is: 2024-05-04 07:39:29
Your offset time is: 2024-05-04 07:39:29