search for: get_default_styl

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

Did you mean: get_default_style
2006 Aug 24
5
TreeCtrl background?
...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() frame = MyFrame.new("TextCtrl Test") frame.show(TRUE) end end $g_app = MyA...
2006 Aug 24
0
Re: TextCtrl background? (was TreeCtrl background?)
...le) > 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() > frame = MyFrame.new("TextCtrl Test...