# :stopdoc: # This file is automatically generated by the WXRuby3 documentation # generator. Do not alter this file. # :startdoc: module Wx # CP_DEFAULT_STYLE = 2621440 # CP_NO_TLW_RESIZE = 2 # # EVT_COLLAPSIBLEPANE_CHANGED = 10189 # A collapsible pane is a container with an embedded button-like control which can be used by the user to collapse or expand the pane's contents. # # Once constructed you should use the {Wx::CollapsiblePane#get_pane} function to access the pane and add your controls inside it (i.e. use the returned pointer from {Wx::CollapsiblePane#get_pane} as parent for the controls which must go in the pane, not the {Wx::CollapsiblePane} itself!). # Note that because of its nature of control which can dynamically (and drastically) change its size at run-time under user-input, when putting {Wx::CollapsiblePane} inside a {Wx::Sizer} you should be careful to add it with a proportion value of zero; this is because otherwise all other windows with non-null proportion values will automatically resize each time the user expands or collapse the pane window usually resulting in a weird, flickering effect. # Usage sample: # # ```ruby # collpane = Wx::CollapsiblePane.new(self, Wx::ID_ANY, "Details:") # # # add the pane with a zero proportion value to the 'sz' sizer which contains it # sz.add(collpane, 0, Wx::GROW|Wx::ALL, 5) # # #/ now add a test label in the collapsible pane using a sizer to layout it: # win = collpane.get_pane # pane_sz = Wx::VBoxSizer # pane_sz.add(Wx::StaticText.new(win, Wx::ID_ANY, "test!"), 1, Wx::GROW|Wx::ALL, 2) # win.set_sizer(pane_sz) # pane_sz.set_size_hints(win) # ``` # # It is only available if {Wx::Setup::USE_COLLPANE} is set to 1 (the default). # ### Styles # # This class supports the following styles: # # - {Wx::CP_DEFAULT_STYLE}: The default style. It includes {Wx::TAB_TRAVERSAL} and {Wx::Border::BORDER_NONE}. # # - {Wx::CP_NO_TLW_RESIZE}: By default {Wx::CollapsiblePane} resizes the top level window containing it when its own size changes. This allows easily implementing dialogs containing an optionally shown part, for example, and so is the default behaviour but can be inconvenient in some specific cases use this flag to disable this automatic parent resizing then. # # ### Events emitted by this class # # The following event-handler methods redirect the events to member method or handler blocks for {Wx::NavigationKeyEvent} events. # Event handler methods for events emitted by this class: # # - {Wx::EvtHandler#evt_collapsiblepane_changed}(id, meth = nil, &block): The user expanded or collapsed the collapsible pane. # # - {Wx::EvtHandler#evt_navigation_key}(meth = nil, &block): Process a navigation key event. # # Category: {Wx::Controls}
WXMSW Appearance # | WXGTK Appearance # | WXOSX Appearance # |