I can’t figure out the “\n” character. Sometimes it will make a new line in a display.newText, sometimes it won’t. It always does it in print(), though. It just won’t with display.newText. Any ideas? [import]uid: 147322 topic_id: 33593 reply_id: 333593[/import]
You have to add a “width” and “height” params to newText, then the linefeed will kick in.
Joakim [import]uid: 81188 topic_id: 33593 reply_id: 133526[/import]
Yes, but the problem is that when you do that, the text has that width and height. So if you want to find the height of it, it’s already set. In other words, you don’t get the real height of the text. You get your specified height. Is there a way to do it without that? [import]uid: 147322 topic_id: 33593 reply_id: 133528[/import]
I know that sucks - theres no way to dynamically positioning text by width and height by referencing other object in the layout for example. I have been fighting with this for a long time now and I haven’t seen any solutions / workarounds for this. It is really stupid that you cant put in nil in height so that the text object automatic sets the height, depending on the content.
Joakim [import]uid: 81188 topic_id: 33593 reply_id: 133534[/import]
OH! HEY! I found in the APIs that you can set the height to 0 and it will do it! So that should work. [import]uid: 147322 topic_id: 33593 reply_id: 133536[/import]
Woawww, thats great!
Just tested it and it works - hallelujah!
Joakim [import]uid: 81188 topic_id: 33593 reply_id: 133537[/import]
You have to add a “width” and “height” params to newText, then the linefeed will kick in.
Joakim [import]uid: 81188 topic_id: 33593 reply_id: 133526[/import]
Yes, but the problem is that when you do that, the text has that width and height. So if you want to find the height of it, it’s already set. In other words, you don’t get the real height of the text. You get your specified height. Is there a way to do it without that? [import]uid: 147322 topic_id: 33593 reply_id: 133528[/import]
I know that sucks - theres no way to dynamically positioning text by width and height by referencing other object in the layout for example. I have been fighting with this for a long time now and I haven’t seen any solutions / workarounds for this. It is really stupid that you cant put in nil in height so that the text object automatic sets the height, depending on the content.
Joakim [import]uid: 81188 topic_id: 33593 reply_id: 133534[/import]
OH! HEY! I found in the APIs that you can set the height to 0 and it will do it! So that should work. [import]uid: 147322 topic_id: 33593 reply_id: 133536[/import]
Woawww, thats great!
Just tested it and it works - hallelujah!
Joakim [import]uid: 81188 topic_id: 33593 reply_id: 133537[/import]
Hi Joakim!
Sorry for posting this here.
I was looking at this post http://web-c2.anscamobile.com/forum/2012/07/27/strange-error-console-sound-related cause I’ve got the same problem.
Please, could you tell me if finally you solved the issue?
Sorry again for this post!
Alberto [import]uid: 44013 topic_id: 33593 reply_id: 134986[/import]
Hi Joakim!
Sorry for posting this here.
I was looking at this post http://web-c2.anscamobile.com/forum/2012/07/27/strange-error-console-sound-related cause I’ve got the same problem.
Please, could you tell me if finally you solved the issue?
Sorry again for this post!
Alberto [import]uid: 44013 topic_id: 33593 reply_id: 134986[/import]