Forum: wxRuby Grid#set_cell_size is missing

Cd470fb8cf5a46c2a15efba944da4166?d=identicon&s=25 Yonatan Elhanan (Guest)
on 2010-05-25 19:38
(Received via mailing list)
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
This topic is locked and can not be replied to.