Re: limit on inserted string size in an entry widget
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: limit on inserted string size in an entry widget

From: Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Date: Tue Mar 14 2006 - 13:04:54 CET

Dan Smart <news900@dansmart.com> wrote:
> On 2006-03-13 16:36:26 -0500, "Francois Vogel"
><fsvogelnew5NOSPAM@free.fr> said:
>> Try this in wish:
>> set str [string repeat "0123456789" 4380]
>> entry .e
>> pack .e
>> .e insert 0 $str
>> replacing 4380 by 4350 makes the string to be visible.

The limit is probably induced by font-width. If you use
a smaller font, probably more characters can be added
without all going invisible. (This is just to check the
theory, it's not meant as a workaround!)

I noticed a similar effect with text-widgets, some while
ago, but in my case only with a wish8.5 compiled for xft.
It might have to do with xft more, than with wish's version.

Actually, I'd think that strange effects would happen
for even shorter strings, since 43800 characters with
a typical (guessed) width of 5-10 pixels are already far
beyond the typical 65536-wraparound.
Received on Sun Apr 30 02:31:38 2006