search for: get_client_size

Displaying 6 results from an estimated 6 matches for "get_client_size".

Did you mean: set_client_size
2009 Mar 23
3
How to put a background image on a panel
Well I''ve made a lot of progress on my app, but I''m stuck on figuring out how to add a bitmap. I have a notebook and a page panel. On this panel I want to put a backdrop image and scale it to the size of the panel. How do I do this? I looked at some of the samples related to bitmaps and I could not see how to apply that to my situation. Thanks, T.
2006 Oct 21
0
[699] trunk/wxruby2/doc/textile/window.txtl: Added paint method; corrected ret values for get_text_extent; removed
...u +don''t have to worry about deleting them manually. </ins><span class="cx"> </span><del>-Also note that in this, and many others, Widgets classes some -@GetXXX()@ methods may be overloaded (as, for example, -"get_size":#Window_getsize or -"get_client_size":#Window_getclientsize). In this case, the overloads -are non-virtual because having multiple virtual functions with the same name -results in a virtual function name hiding at the derived class level (in -English, this means that the derived class has to override all overloaded -variants if i...
2004 Apr 21
2
Resizing a ListCtrl
Hi Guys, I''m having serious troubles resizing a dialog with a ListCtrl. The ctrl will not resize horizontally no matter what I''m doing. I''ve attached a sample code below. Any help will be greatly appreciated, as I really like wxRuby :) I''ve also tried to copy from the example from listtest.rbw, but that also doesn''t seem to work. Another thing
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...UI +# arrangement, its position and layer +class SizeReportCtrl < Wx::Control + def initialize(parent, id, pos, size, mgr = nil) + super(parent, id, pos, size) + @mgr = mgr + evt_paint { on_paint } + evt_size { on_size } + end + + def on_paint + paint do | dc | + size = get_client_size + + dc.set_font Wx::NORMAL_FONT + dc.set_brush Wx::WHITE_BRUSH + dc.set_pen Wx::WHITE_PEN + dc.draw_rectangle(0, 0, size.x, size.y) + dc.set_pen Wx::LIGHT_GREY_PEN + dc.set_pen Wx::LIGHT_GREY_PEN + dc.draw_line(0, 0, size.x, size.y) + dc.draw_line(0, size.y,...
2007 Apr 16
0
[969] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Cleanup and fixing of broken links.
...lds </span><span class="cx"> @font@, @colFg@ and @colBg@. All of them may be invalid </span><span class="lines">@@ -840,7 +838,7 @@ </span><span class="cx"> </span><span class="cx"> "Size":size.html *get_client_size*() </span><span class="cx"> </span><del>-This gets the size of the window `client area'' in pixels. </del><ins>+This gets the size of the window ''client area'' in pixels. </ins><span class="cx"> The client...
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...span class="cx"> </span><span class="cx"> Integer *get_scroll_pos*(%(arg-type)Integer% orientation) </span><span class="lines">@@ -1226,6 +1310,14 @@ </span><span class="cx"> "get_size":#Window_getsize, "get_client_size":#Window_getclientsize </span><span class="cx"> </span><span class="cx"> </span><ins>+h3(#Window_getwindowbordersize). Window#get_window_border_size + + "Size":size.html *get_window_border_size*() + +Returns the size of the le...