How do you keep the text confined to a certain space. Kind of like a display.newRect for display.newText so that way the text doesn't run off the screen if it's too long?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Keep text From Going Off Screen
There is indeed :)
Try out display.newRetinaText, that has the option to set how wide and high it can go. For example..
1 2 3 | display.newRetinaText( string, left, top, [width, height,] font, size ) display.newRetinaText( "Hello", 0, 0, 280, 220, "Helvetica", 16 ) |
Perfect! Thanks :)
views:1756 update:2012/1/13 9:04:04
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
Problems with Android
Feature Request - Location Library
Custom Fonts for Android
Odd Forces
Mystic Match selected for New and Noteworthy
Random crashes after I started using physics.
Level Helper not working on android
Snapping objects and issues with groups
Featured question
problem with the scope of variables?
Feature Request - Location Library
Custom Fonts for Android
Odd Forces
Mystic Match selected for New and Noteworthy
Random crashes after I started using physics.
Level Helper not working on android
Snapping objects and issues with groups
Featured question
problem with the scope of variables?
corona forums © 2003-2011