search for: test_text_ctrl

Displaying 2 results from an estimated 2 matches for "test_text_ctrl".

2006 Aug 24
5
TreeCtrl background?
...(probably overly verbose) program: require ''wx'' include Wx class MyFrame < Frame def initialize(title) super(nil, -1, title) @top_sizer = BoxSizer.new( Wx::VERTICAL ) @panel = Panel.new(self) @panel.set_auto_layout(true) @panel.set_sizer(@top_sizer) @test_text_ctrl = TextCtrl.new(@panel, -1, "") style = @test_text_ctrl.get_default_style() style.set_background_colour(WHITE) @test_text_ctrl.set_default_style(style) @top_sizer.add(@test_text_ctrl, 0, Wx::EXPAND | Wx::RIGHT, 20) end end class MyApp < App def on_init() fram...
2006 Aug 24
0
Re: TextCtrl background? (was TreeCtrl background?)
...'wx'' > include Wx > > class MyFrame < Frame > def initialize(title) > super(nil, -1, title) > @top_sizer = BoxSizer.new( Wx::VERTICAL ) > @panel = Panel.new(self) > @panel.set_auto_layout(true) > @panel.set_sizer(@top_sizer) > @test_text_ctrl = TextCtrl.new(@panel, -1, "") > > style = @test_text_ctrl.get_default_style() > style.set_background_colour(WHITE) > @test_text_ctrl.set_default_style(style) > > > @top_sizer.add(@test_text_ctrl, 0, Wx::EXPAND | Wx::RIGHT, 20) > end > end >...