search for: get_text_ext

Displaying 19 results from an estimated 19 matches for "get_text_ext".

2006 Apr 23
4
Wx::Window#get_text_extent patch
Here''s a patch to fix Wx::Window#get_text_extent - it requires that the patches from teh last message are applied, to enable *INPUT etc typemaps. Roy - though the function works correctly when called from Ruby, it still causes a crash when called internally when clicking on a Wx::Grid cell. Saw your message on SWIG mailing list, hopefully...
2005 Nov 25
2
Wx::SystemSettings mark II
...file) The sample should allow you to view the available information about system colours, fonts and metrics (eg cursor size, display size) in a Grid. Incidentally, there seems to be a bug in Wx::Grid - when I double-click on a grid cell, I get samples/system_settings/system_settings.rb:245:in `get_text_extent'': No matching function for overloaded ''wxWindow_GetTextExtent'' (ArgumentError) from samples/system_settings/system_settings.rb:245:in `main_loop'' from samples/system_settings/system_settings.rb:245 There''s no explicit call to get_text_extent...
2006 Oct 21
0
[699] trunk/wxruby2/doc/textile/window.txtl: Added paint method; corrected ret values for get_text_extent; removed
...coration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[699] trunk/wxruby2/doc/textile/window.txtl: Added paint method; corrected ret values for get_text_extent; removed</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>699</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-10-21 10:45:10 -0400 (Sat, 21 Oct 2006)</dd&g...
2005 Sep 10
2
Swig generates bad interface to GetTextExtent
Swig''s bad interface generation strikes again. get_text_extent called with 1 argument maps to WindowDC''s _wrap_wxWindowDC_GetTextExtent__SWIG_0 Since this generates a wxFont that''s not initialized to nil it fails when calling into wxWindows. Anyone have a suggestion?
2005 Oct 06
9
Grid.GetTextExtent
..... if (swig_get_up()) { wxWindow::GetTextExtent(string,x,y,descent,externalLeading,font); return; } obj0 = rb_str_new2((const char *)(&string)->mb_str()); obj1 = SWIG_NewPointerObj(x, SWIGTYPE_p_int, 0); result = rb_funcall(swig_get_self(), rb_intern("get_text_extent"), 2,obj0,obj1); Wow. That''s just so wrong. It only converts two parameters and the one it chooses to convert shouldn''t be passed in any case. Any suggestions on this one? Roy
2005 Nov 30
1
No matching function for overloaded ''wxWindow_GetTextExtent'' on Linux
Hi guys, I get this error when I try to edit an item in the grid: dewd@marieta:/mnt/workspace/tpl_src/src/wxruby2/samples/etc$ ruby system_settings.rb Our Initialize was called Their Initialize returned 1 system_settings.rb:245:in `get_text_extent'': No matching function for overloaded ''wxWindow_GetTextExtent'' (ArgumentError) from system_settings.rb:245 I have been getting this consistently on Ubuntu Breezy, wxRuby2 from CVS and Darcs (I tested both just in case :-). wxWidgets is 2.6.2. GTK+ 2.8.6. Any...
2006 Feb 19
1
TextCtrl width
What''s the best way to specify the width of a TextCtrl in characters instead of pixels? -- R. Mark Volkmann Partner, Object Computing, Inc.
2007 Mar 27
0
[922] branches/wxruby2/wxwidgets_282: Changes, additions and deprecations 2.6 -> 2.8 Wx API
...ents </span><span class="cx"> * "DC#get_pen":#DC_getpen </span><span class="cx"> * "DC#get_pixel":#DC_getpixel </span><span class="lines">@@ -82,6 +90,8 @@ </span><span class="cx"> * "DC#get_text_extent":#DC_gettextextent </span><span class="cx"> * "DC#get_text_foreground":#DC_gettextforeground </span><span class="cx"> * "DC#get_user_scale":#DC_getuserscale </span><ins>+* "DC#gradient_fill_concentric":#DC...
2006 Aug 24
4
typemap.i patch
This patch adds %directorout typemaps for the GetTextExtent functions _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Sep 06
12
Patch to wxWindow.h
This patch fixes background color problems (at least on Windows). It uses the dreaded ''FIXME'' My plan for next weekend is to try building wxPython from the source to see how they manage to achieve several things with SWIG that we''re not (yet) able to. If I''m successful it might lead to wrapping a significant portion of wxWidgets more correctly than
2007 May 10
11
wxRuby2 0.0.40
Congratulations, wxRuby2 0.0.40 but,where is 0.0.40 mswin32.gem? _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Aug 10
3
update on samples
...k if not run from current dir. Probably should add textctrls to this one. - dialogs.rb Problems with DC - seems to cause ObjectPreviouslyDeleted error in an on_paint handler. I have worked round this. MDI, ColourDialog crashes on OS X. - system_settings.rb OK (thanks to Sean''s fix for get_text_extent) - images.rb OK - listbook.rb OK, except breaks if not run from own directory. - mdi.rb MDI doesn''t work on OS X? - minimal.rb OK - have tidied up and commented a bit more, commit pending - text/textctrl.rb Ok - text/unicode.rb OK - except the signature of Choice.new() has changed...
2006 Oct 17
0
[680] trunk/wxruby2/samples/printing/printing.rb: Cleaned up to use the Ruby naming convention, added #! line, now uses Wx default ID''s in standard menu items.
...s>+ left_margin_logical = (mm_to_logical*left_margin).to_i + top_margin_logical = (mm_to_logical*top_margin).to_i + right_margin_logical = (mm_to_logical*(page_width_mm - right_margin)).to_i </ins><span class="cx"> </span><del>- xExtent, yExtent= dc.get_text_extent(text) - xPos = (((((pageWidthMM - leftMargin - rightMargin)/2.0)+leftMargin)*mmToLogical) - (xExtent/2.0)) - dc.draw_text(text, xPos.to_i, topMarginLogical.to_i) </del><ins>+ x_extent, y_extent= dc.get_text_extent(text) + x_pos = (((((page_width_mm - left_margin - right_m...
2008 Jan 11
9
[ wxruby-Bugs-17013 ] Notebook#get_current_page
Bugs item #17013, was opened at 2008-01-11 06:00 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=17013&group_id=35 Category: Missing API call Group: None Status: Open Resolution: None Priority: 3 Submitted By: Daniel Brumbaugh Keeney (db-keen) Assigned to: Nobody (None) Summary: Notebook#get_current_page Initial Comment: Notebook#get_current_page
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...TE_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, size.x, 0) + + msg = "Size: %d x %d" % [ size.x, size.y ] + width, height = dc.get_text_extent(msg) + height += 3 + dc.draw_text(msg, + (size.x - width) / 2, + (size.y - ( height * 5 ) ) / 2 ) + + if @mgr + pi = @mgr.get_pane(self) + msg = "Layer: %d" % pi.dock_layer + width, height = dc.get_text_extent(msg)...
2006 Apr 12
6
*OUTPUT/*INPUT typemaps
...So I tried just copying the section from SWIG''s ruby/typemaps.i that deals with output, input and inout mapping of simple types like int, long etc. It''s attached. I pasted this into our own swig/typemap.i file and recompiled. And it seems to work. For example, with Wx::Window#get_text_extent, I added the directives %apply int *OUTPUT { int* x , int* y , int* descent, int* externalLeading}; %apply wxFont *INPUT { const wxFont* font }; And then the method correctly returns a four-element array containing width, height, descent and leading. I also tried Wx::TextCtrl#position...
2007 Mar 18
0
[894] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Document changed Window methods in 2.6 -> 2.8 API
...an class="lines">@@ -129,7 +127,6 @@ </span><span class="cx"> * "Window#get_size":#Window_getsize </span><span class="cx"> * "Window#get_sizer":#Window_getsizer </span><span class="cx"> * "Window#get_text_extent":#Window_gettextextent </span><del>-* "Window#get_title":#Window_gettitle </del><span class="cx"> * "Window#get_tool_tip":#Window_gettooltip </span><span class="cx"> * "Window#get_update_region":#Window_ge...
2006 Nov 26
0
[758] trunk/wxruby2: i18n support: added Locale class, methods for get/set languages & encodings
...- </del><span class="cx"> h2. See also </span><span class="cx"> </span><span class="cx"> "Font overview":fontoverview.html, "DC#set_font":dc.html#DC_setfont, "DC#draw_text":dc.html#DC_drawtext, "DC#get_text_extent":dc.html#DC_gettextextent, "FontDialog":fontdialog.html, "SystemSettings":systemsettings.html </span><span class="lines">@@ -156,9 +132,17 @@ </span><span class="cx"> </span><span class="cx"> h2. Methods...
2007 Apr 16
0
[969] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Cleanup and fixing of broken links.
...ot;set_sizer()":#Window_setsizer() or @NULL@. </del><ins>+"set_sizer":#Window_setsizer or @nil@. </ins><span class="cx"> </span><span class="cx"> </span><span class="cx"> h3(#Window_gettextextent). Window#get_text_extent </span><span class="lines">@@ -1187,7 +1185,7 @@ </span><span class="cx"> </span><span class="cx"> "ToolTip":tooltip.html *get_tool_tip*() </span><span class="cx"> </span><del>-Get th...