Advertisement
lavalevel

I need a universal textbox solution

Jan 19th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. function removeTextBox()
  2.             textBox:removeSelf()
  3.             textBox=nil
  4.             scrollView.y = 200
  5.             scrollView:removeSelf()
  6.             for i=1, 200 do
  7.             print (" DELETED ScrollView ")
  8.             end
  9. end
  10.  
  11. textBox = display.newText( ( rosetta:getString (whatToSay) ), 4, 0, 280 , 0, "QuadratSerial", 16)
  12. textBox:setTextColor( 220, 220, 220, 255 )
  13. local widget = require "widget"
  14. scrollView = widget.newScrollView{ height=130, maskFile="TextMask.png", bgColor = {20,20,35,255} }
  15. scrollView.isHitTestMasked = true
  16. scrollView:insert(textBox)
  17. scrollView.y = 280
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement