/ Published in: Ruby

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Setup a scroll view containing a text view @scroll_view = scroll_view(:frame => [0,0,495,300], :layout => {:expand => [:height, :width]}) @text_view = text_view(:frame => [0,0,490,300]) @scroll_view.documentView = @text_view #Load into the window with: win << @scroll_view #To read/write text under the text_view, you can refer to it as @text_view.string = " Text"
Comments
