Sha256: e2f91f45cffee599626b399b8cc58ae15101378f47f22e8c1a7471774c425bca
Contents?: true
Size: 1.74 KB
Versions: 19
Compression:
Stored size: 1.74 KB
Contents
--- :wxStaticBox.wxStaticBox: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby class MyFrame < Wx::Frame def create_controls panel = Wx::Panel.new(self) checkbox = Wx::CheckBox.new(panel, Wx::ID_ANY, "Box checkbox") box = Wx::StaticBox.new(panel, Wx::ID_ANY, checkbox) ... end end ``` :post: - :pattern: !ruby/regexp /,\s+use\s+\{Wx::HAS_WINDOW_LABEL_IN_STATIC_BOX\}.*compile-time\./ :subst: '.' :wxStaticBox.Create: :detail: :post: - :pattern: !ruby/regexp /,\s+use\s+\{Wx::HAS_WINDOW_LABEL_IN_STATIC_BOX\}.*compile-time\./ :subst: '.' :wxStaticBox.Enable: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby check = Wx::CheckBox.new(parent, Wx::ID_ANY, "Use the box") box = Wx::StaticBox.new(parent, Wx::ID_ANY, check) check.evt_checkbox { |event| box.enable(event.checked? } ``` :wxStaticBox: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby class MyFrame < Wx::Frame def create_controls panel = Wx::Panel.new(self) box = Wx::StaticBox.new(panel, Wx::ID_ANY, 'StaticBox') Wx::StaticText.new(box, Wx::ID_ANY, "This window is a child of the staticbox") ... end end ```
Version data entries
19 entries across 19 versions & 1 rubygems