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:1757 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
相关文章
Game Center support?
Keep text From Going Off Screen
Ultimate Coins Game Version 2.0 Lite Version, also approved
Lua download POST request
HoopsH20 - PROMO CODES
Assigning myName to an element in an array causes an error?
Free Marketing Opportunity: AppMadness.net App Tournament
Input Forms with browser control
WebPopup doesn't reload correctly with Director
Allow Pandora / iTunes to play in the background
Keep text From Going Off Screen
Ultimate Coins Game Version 2.0 Lite Version, also approved
Lua download POST request
HoopsH20 - PROMO CODES
Assigning myName to an element in an array causes an error?
Free Marketing Opportunity: AppMadness.net App Tournament
Input Forms with browser control
WebPopup doesn't reload correctly with Director
Allow Pandora / iTunes to play in the background
corona forums © 2003-2011