noreply at rubyforge.org
2007-Oct-24 19:47 UTC
[wxruby-development] [ wxruby-Bugs-15025 ] TextCtrl method get_insertion_point() return is constrained to a 16 bit number
Bugs item #15025, was opened at 2007-10-24 15:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=15025&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: TextCtrl method get_insertion_point() return is constrained to a 16 bit number Initial Comment: The get_insertion_point() method can only return values between 0 and 65535. 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&group_id=35
Seemingly Similar Threads
- [ wxruby-Bugs-11446 ] Wx::TextCtrl behaves wrong when scrolling
- [ wxruby-Bugs-8068 ] TextCtrl#append_text doesn''t work when text is in UTF8
- [ wxruby-Bugs-14374 ] TextCtrl TE_RICH and SUNKEN_BORDER (WxRuby1.9.1)
- [ wxruby-Bugs-15845 ] ctrl+shift+t crashes empty styled textctrl
- problem with TextCtrl#get_insertion_point