search for: gridchildpanel

Displaying 1 result from an estimated 1 matches for "gridchildpanel".

2007 Apr 27
1
panel as child of grid on Windows
...T_POSITION, Wx::DEFAULT_SIZE) frame.show() end end class MyPanel < Wx::Panel def initialize (parent, id, pos, size) super(parent, id, pos, size) grid = Wx::Grid.new(self, -1, Wx::DEFAULT_POSITION, Wx::Size.new (400,400)) grid.create_grid( 2, 2 ) panel = GridChildPanel.new(self, -1, pos, Wx::Size.new (100,100)) end end class GridChildPanel < Wx::Panel def initialize(parent, id, pos, size) super(parent, id, pos, size) set_background_colour(Wx::GREEN) button = Wx:: Button.new(self, -1, ''Push me'') end end ap...