search for: onsiz

Displaying 8 results from an estimated 8 matches for "onsiz".

Did you mean: onsip
2004 Apr 21
2
Resizing a ListCtrl
...LC_REPORT | LC_SINGLE_SEL) fillListCtrl() centerSizer.add(@fileList, 6, GROW|EXPAND) # }}} @dlgSizer.add(centerSizer, 1) @dlgSizer.set_size_hints(self) set_sizer(@dlgSizer) # end main layout }}} ## global events {{{ evt_close {onClose} evt_size() {|event| onSize(event) } # }}} end ## }}} def onClose ## {{{ destroy() end ## }}} def onSize(event=nil) frame_size = event.get_size x = frame_size.x - 10 y = frame_size.y - 10 @fileList.set_size_xy(x, y) event.skip() if event end def fillListCtrl #{{{ @fileLi...
2006 Dec 12
0
[785] trunk/wxruby2/doc/textile/window.txtl: Remove set_constraints, correct docs for set_dimensions and set_size
...ZE_AUTO_WIDTH*: a -1 width value is taken to indicate +a wxRuby-supplied default width. </ins><span class="cx"> </span><del>-You must call "Window#set_auto_layout":window.html#Window_setautolayout to tell a window to use -the constraints automatically in OnSize; otherwise, you must override OnSize and call Layout() -explicitly. When setting both a LayoutConstraints and a "Sizer":sizer.html, only the -sizer will have effect. </del><ins>+*SIZE_AUTO_HEIGHT*: a -1 height value is taken to indicate +a wxRuby-supplied default width. </...
2007 Mar 19
0
[900] branches/wxruby2/wxwidgets_282/swig/classes: Initial commit of AUI core classes
...// public events (which can be invoked externally) + void OnRender(wxAuiManagerEvent& evt); + void OnPaneButton(wxAuiManagerEvent& evt); + +protected: + + // protected events + void OnPaint(wxPaintEvent& evt); + void OnEraseBackground(wxEraseEvent& evt); + void OnSize(wxSizeEvent& evt); + void OnSetCursor(wxSetCursorEvent& evt); + void OnLeftDown(wxMouseEvent& evt); + void OnLeftUp(wxMouseEvent& evt); + void OnMotion(wxMouseEvent& evt); + void OnLeaveWindow(wxMouseEvent& evt); + void OnChildFocus(wxChildFocusEvent&...
2007 Jan 03
0
[823] trunk/wxruby2/doc/textile: Remove docs for some deprecated classes
...he tab view should be subclassed and this function overridden. - -h3. TabView#layout_tabs - - *layout_tabs*() - -Recalculates the positions of the tabs, and adjusts the layer of the selected tab if necessary. - -You may want to call this function if the view width has changed (for example, from an OnSize handler). - -h3. TabView#on_event - - Boolean *on_event*(%(arg-type)MouseEvent% event) - -Processes mouse events sent from the panel or dialog. Returns true if the event was processed, -false otherwise. - -h3. TabView#on_tab_activate - - *on_tab_activate*(%(arg-type)Integer% activateId, %(arg-ty...
2006 Dec 03
0
[778] trunk/wxruby2: Remove broken and deprecated LayoutConstraints, update samples & docs
...ORCHID")) - - @panelA = Wx::Window.new(self, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::SIMPLE_BORDER) - @panelA.set_background_colour(Wx::BLUE) - txt = Wx::StaticText.new(@panelA, -1, "Resize the window and see\nwhat happens... Notice that\nthere is no OnSize handler.", - Wx::Point.new(5,5), Wx::Size.new(-1,50)) - txt.set_background_colour(Wx::BLUE) - txt.set_foreground_colour(Wx::WHITE) - - lc = Wx::LayoutConstraints.new() - lc.top.same_as(self, Wx::LAYOUT_TOP, 10) - lc...
2008 Jan 08
28
1.9.3 release, rakefile
Hi I''d like to put out a 1.9.3 release perhaps later this week/weekend. If you have a chance to test the build and samples esp with latest rubygems, please do. There are still some bugs on the list, and samples to do, but this should address all the build/install probs that have come up. And it would be good to get some testing and feedback on some of the new classes. A note on the
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...t; size changes. </span><span class="cx"> </span><span class="cx"> h4. Parameters </span><span class="cx"> </span><del>-* _autoLayout_ Set this to @true@ if you wish the Layout function to be called -from within Window::OnSize functions. </del><ins>+* _autoLayout_ Set this to if you wish the Layout function to be +called automatically when the window is resized. </ins><span class="cx"> </span><span class="cx"> h4. See also </span><span class="cx&quo...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...(size.x - width) / 2 , + ( ( size.y - ( height * 5 ) ) / 2 ) + ( height * 4 ) ) + + end + end + end + + def on_size + refresh + end +end + +class SettingsPanel < Wx::Panel + consts = %w[ + ID_PaneBorderSize + ID_SashSize + ID_CaptionSize + ID_BackgroundColour + ID_SashColour + ID_InactiveCaptionColour + ID_InactiveCaptionGradientColour + ID_InactiveCaptionTextColour + ID_ActiveCaptionColour + ID_ActiveCaptionGradientColour + ID_ActiveCaptionTextColour + ID_BorderColour + ID_Gripper...