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 / SetTextMaxWidth() does nothing?

Author
Message
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 24th May 2012 16:47
Can anybody confirm that SetTextMaxWidth() does nothing?

I'm using this code in 1074:



Has anybody gotten this command to do anything?
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 24th May 2012 17:02
It causes the text to wrap if it would be wider than the value set.

Cheers,
Ancient Lady
basjak
14
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 24th May 2012 17:23 Edited at: 24th May 2012 19:03
the command worked when I tried it on 1071 but rich is right, it not working now and the text is not moving next line when max is reached

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 24th May 2012 17:48
And so things progress.....

Cheers,
Ancient Lady
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 24th May 2012 19:01 Edited at: 24th May 2012 19:03
X steps forward, Y steps back.

I'll post it on the Google board.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 25th May 2012 18:03
The command doesn't take effect until the next time the text is set, so calling it before SetTextString would have the intended effect. I'll make sure it updates existing next for a future update.
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 25th May 2012 19:45
Thanks, Paul! That's good to hear!
pprem
12
Years of Service
User Offline
Joined: 14th Jun 2012
Location: Paris, France
Posted: 12th Jul 2012 04:19
Hi

This code works fine on PC and don't on iOS



On PC, the text wrap.
On iOS, the text is on the same line.

So, I changed my code after reading this page to



On PC, all works fine.
On iOS, I have no text on screen.

Do you have any idea ?

--
Patrick P.
http://www.gamolf.fr
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 12th Jul 2012 22:55
What is y equal to?

What is your virtual width?

I used to hate the thought of governments having orbital mind control satellites,
but now I can't really seem to care.
pprem
12
Years of Service
User Offline
Joined: 14th Jun 2012
Location: Paris, France
Posted: 14th Jul 2012 04:20
I found the cause of my problem : I work with release 1076, but I had an old copy of interpreter-ios I used with Xcode

Starting from scratch fix the problem: SetTextMaxWidth works fine.

I can now submit my App to Apple this week-end

--
Patrick P.
http://www.gamolf.fr

Login to post a reply

Server time is: 2024-11-27 10:18:15
Your offset time is: 2024-11-27 10:18:15