Why is there no Grid#set_cell_size method? I want to create cells
spanning several rows/columns. I get a method_missing error and it's not
on the docs.
require 'wx'
class GridFrame < Wx::Frame
def initialize
super(nil, -1, "Grid Cell Size")
grid = Wx::Grid.new(self, -1)
grid.create_grid(10, 10)
grid.set_cell_size(1,1, 2, 2)
sizer = Wx::BoxSizer.new(Wx::VERTICAL)
sizer.add(grid)
set_sizer(sizer)
end
end
class GridCellSizeApp < Wx::App
def on_init
frame = GridFrame.new
frame.show
end
end
GridCellSizeApp.new.main_loop
on 2010-05-25 19:38
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.