search for: position_to_xy

Displaying 7 results from an estimated 7 matches for "position_to_xy".

2008 May 19
0
[ wxruby-Bugs-20245 ] position_to_xy always returns nil in OSX
...5, was opened at 2008-05-19 12:51 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=20245&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: position_to_xy always returns nil in OSX Initial Comment: Tested under OsX Leopard, ruby 1.86 plevel 111, wxruby: 1.9.7 No matter what position I give it, position_to_xy will always return a nil. Kindly Your''s, Frank Woeckener ----------------------------------------------------------------------...
2006 Apr 27
5
Major Breakthrough?
Attached are patches to make the textctrl.rb sample work fully. Note the new %directorargout typemap I added to fix wxWindows calling into SWIG. I don''t know if this can fix all such problems or not. Let me know what you think. I also rubified the sample a little bit more. Also, note that I fix the << operator so the function can be called. I hope I did this right. Roy
2007 Jun 17
2
Wx::TextCtrl and wxMSW
...have some processing of the text to colorize it, but I think this is just generally a problem # with word wrapping in general self.freeze # Freeze the buffer, so the control doesn''t try to scroll on us, don''t need that. Plus makes for faster updates succ,c,sl = self.position_to_xy(self.get_last_position) # Need to know where we are at in the buffer. Only part used is sl # Here is where I process my text, but shouldn''t be needed for other stuff, least your doing an Extended Text Formatting self.append_text(text) self.thaw # Okay, we are done adding, so...
2007 Oct 29
12
wxRuby Socket Demo finally available
Hello All, I''ve just sent off the source code for wxRuby Socket''s demo to Sean and Alex to do some final testing on Linux and MacOS X, to ensure compatability of my design with those two operating systems. Once confirmed, the demo will be posted to the SVN. What is basically entailed within these two demos, is the implementation of a Server with a GUI Front End, and the
2007 Oct 24
0
[ wxruby-Bugs-15025 ] TextCtrl method get_insertion_point() return is constrained to a 16 bit number
...If you have a lot of text (>65535 characters) in the control the value being returned from get_insertion_point() will not be correct for any point after the 65535th character. This was tested with wxRuby 1.9.0 and 1.9.2. The Ruby version is 1.8.6 and the OS is Windows XP. Interestingly enough position_to_xy() will take values over 65k even though its parameter and get_insertion_point()''s return are of the same type. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=15025&gro...
2006 Apr 12
6
*OUTPUT/*INPUT typemaps
...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_to_xy. This could help us fix quite a few useful methods, but I''m not sure if this is generally the right approach (block-copying from typemaps.i to our typemap.i). If it sounds right, let me know and I''ll generate proper patches and send them in. cheers alex _________________...
2007 Jul 04
0
[1104] trunk/wxruby2: Added 2.8 methods to TextCtrl & document them; tidy up header file
..."> </span><span class="cx"> String *get_range*(%(arg-type)Integer% from, %(arg-type)Integer% to) </span><span class="lines">@@ -505,6 +542,7 @@ </span><span class="cx"> </span><span class="cx"> "position_to_xy":#TextCtrl_positiontoxy, "XYToPosition":textctrlxytoposition.html </span><span class="cx"> </span><ins>+ </ins><span class="cx"> h3(#TextCtrl_iseditable). TextCtrl#is_editable </span><span class="cx"> &lt...