Displaying 1 result from an estimated 1 matches for "btn_focus".
Did you mean:
can_focus
2006 Nov 13
7
[736] trunk/wxruby2/samples/dialogs/dialogs.rb: Fixed crashing bug in on_paint and made the code style more Ruby like.
..., -1, "&Delete button")
- btnOk = Button.new(self, ID_CANCEL, "&Close")
- sizerTop.add(@m_btnFocused, 0, ALIGN_CENTER | ALL, 5)
- sizerTop.add(@m_btnDelete, 0, ALIGN_CENTER | ALL, 5)
- sizerTop.add(btnOk, 0, ALIGN_CENTER | ALL, 5)
</del><ins>+ @btn_focused = Button.new(self, -1, "Default button")
+ @btn_delete = Button.new(self, -1, "&Delete button")
+ btn_ok = Button.new(self, ID_CANCEL, "&Close")
+ sizer_top.add(@btn_focused, 0, ALIGN_CENTER | ALL, 5)
+ sizer_top.add(@btn_delete, 0, ALIGN_CENTER |...