|
From: SourceForge.net <no...@so...> - 2009-09-16 20:37:18
|
Bugs item #1449858, was opened at 2006-03-14 21:14 Message generated for change (Comment added) made by fvogelnew1 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1449858&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 07. [entry] Group: current: 8.5.7 Status: Open Resolution: None Priority: 6 Private: No Submitted By: fvogelnew1 (fvogelnew1) Assigned to: Jeffrey Hobbs (hobbs) Summary: limit on inserted string size in an entry widget Initial Comment: Try this in wish: set str [string repeat "0123456789" 4380] entry .e pack .e .e insert 0 $str Doing this I get after some amount of waiting an entry widget packed in the . toplevel. Good. The problem is that the entry is apparently empty (fully white). Selecting some area makes the selected characters apparent, while unselecting them hides them again. Is there some (undocumented) limit in the length of what can be inserted in an entry widget? Replacing 4380 by 4350 makes the string to be visible. I already found the tk_messageBox silently does not open if the -message parameter exceeds some limit. Maybe this limit is the same? Windows XP SP2, Tcl/Tk 8.5a4 or 8.4.12 as well. I have been told in the newsgroup that this limit could have something to do with the font width. Some limit in pixels number is probably silently hit. Moreover, still from the ng: On Mac OS 10.4.5 with tcl/tk 8.4.7 neither 4350 nor 4380 works, and indeed in either case the entry appears to actually be *empty*, but it will not accept any further input ---------------------------------------------------------------------- >Comment By: fvogelnew1 (fvogelnew1) Date: 2009-09-16 22:37 Message: Confirmed this limit on same OS/versions, i.e. Vista 64-bit with 8.5.7 (32-bit build from ActiveState). ---------------------------------------------------------------------- Comment By: Jeffrey Hobbs (hobbs) Date: 2009-05-07 02:36 Message: I have found that this hits much sooner on Vista 64-bit with 8.5.7 (32-bit build), and actually hits me (no longer displays) at the 32K pixel boundary: (System32) 69 % catch {string repeat 0123456789 546} str 0 (System32) 70 % string len $str 5460 (System32) 71 % .e cget -font TkTextFont (System32) 72 % font measure TkTextFont $str 32760 (System32) 73 % catch {string repeat 0123456789 547} str 0 (System32) 74 % font measure TkTextFont $str 32820 Note that when I stroke a selection, I do see the text. ---------------------------------------------------------------------- Comment By: Jeffrey Hobbs (hobbs) Date: 2009-05-07 02:35 Message: Let's see if this works, or if the fucktards at SF have completely locked me out with their stupid upgrade ... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2009-05-04 12:25 Message: found similiar problem under windows xp, tk 8.3, 8.4 and 8.5. the string limit i found was: 43684 pls see following posts: http://groups.google.at/group/comp.lang.tcl/browse_thread/thread/e269093916a8a7b1?hl=de# ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1449858&group_id=12997 |