def refresh
self.contents.clear
for index in 0...@arr.size
rect = Rect.new(0,32*index,self.contents.width-8,22)
self.contents.fill_rect(rect,Color.new(255,255,255,0))
self.contents.draw_text(0,32*index,128,32,"#{@arr[index]}") #(x,y,w,h,"")
end
end
end
[/pre]
其实就是调用后可以现实一个窗口,这个窗口能分页现实图片啦作者: taroxd 时间: 2014-9-7 18:29 本帖最后由 taroxd 于 2014-9-7 18:31 编辑