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 / SetPrintSize() not working?

Author
Message
Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 9th Jan 2012 10:20
I've posted this as a bug for Android, but maybe it's just my phone.

Can a few others test this on various platforms and post the results?



When I run the AppGameKit Player on my phone, the text is always the default size, it doesn't change to match the SetPrintSize() command. I can't test it on my iPad right now. It works fine on my mac mini, just not on my phone.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th Jan 2012 10:27
I'll try to test it tonight. I haven't used Print very much in testing on the iPod touch but I'll see how your example looks.

Funnell7
12
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 9th Jan 2012 10:41 Edited at: 9th Jan 2012 10:42
Seems OK on an Android Samsung Galaxy S2. I tried with this code also, the print size increases...



EDIT: 'Code' brackets were wrong...
Preben
AGK Studio Developer
19
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 9th Jan 2012 11:18
I believe he mean the size of the text inside the "StartTextInput" the text input control.

I did not find any commands to set that.

best regards Preben Eriksen,
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 9th Jan 2012 12:12
Text Size works for me for printing text to screen. For inputting text, it is always the same size, for Android and Windows.

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th Jan 2012 12:21
Oh I see. "setPrintSize()" is only for the "Print()" command surely?

Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 9th Jan 2012 17:22
Yes, I'm talking about the Print("") command, not the text input box. I guess it's just my phone then, since nobody else is seeing the problem. Hmmm... I'm going to pick up a Kindle Fire, hopefully I'll be able to test on that.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th Jan 2012 18:25
As I said Rich I'll try to test tonight, I'll let you know the results... should only take 2 minutes to test.

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 9th Jan 2012 21:34
Print() works ok on

HTC Wildfire
Archos G9 Tablet.

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th Jan 2012 23:30
Works fine on iPod Touch 4G...

Marl
12
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 10th Jan 2012 08:48 Edited at: 10th Jan 2012 08:53
Samsung Galaxy SII (android) - the text appears tiny - see attached.

The fix is to to put the SetPrintSize(100) command inside the loop.

So it looks like the input routine resets the print size - on my phone at least - which it does not do on windows.

Attachments

Login to view attachments
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Jan 2012 10:07
Quote: "So it looks like the input routine resets the print size - on my phone at least - which it does not do on windows."


I always assume the print size needs setting when I make new text, so it always gets set when I make new text. I haven't tried the scenario where you mix it with inputting text without resetting the size.

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 10th Jan 2012 10:12
I had been using it as a method of setting all future print statements but re-reading the help makes it obvious it should be used once "per loop". I imagine this will affect all print statements created during that loop, perhaps even before the command is called?
Quote: "Sets the size that printed text will appear on the screen. This is a global command and will affect all printed text in the next call to Sync."


BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Jan 2012 12:35
In my last update I confused Text and Print, my bad

Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 10th Jan 2012 14:09
Okay, that's an easy enough fix.

The fact that the same code has different results on windows vs some android phones makes it a bug in my book, but it seems a case of "some operating systems let you get away with setting the print size once, while other operating systems require you to set the print size every sync cycle, which is how the command is intended to be used"

Login to post a reply

Server time is: 2024-04-20 00:40:16
Your offset time is: 2024-04-20 00:40:16