Increasing capacity of text canvas 
Author Message
 Increasing capacity of text canvas


Quote:
> Hi,

> I'm putting together a framework for automated intelligent log watching.

> One of the features of the system is that it be able to display logfiles
> as it watches them.

> I have some pretty good code going, thanks to this list and the camel
> book, but after a certain arbitrary point, the output to (on?) the text
> canvas stops. I am presently attempting no overt memory management for
> the widget.

> Is there some limitation on how much text I can pack into a scrollable
> text canvas? (I would think there would be) and how might I manage this
> limitation (i.e., give it more space, track the amount of memory
> remaining available to it, etc.)?

> Any steerage in the right direction would be greatly appreciated =^)

I think I saw somewhere a 32767 pixel limitation in the canvas source
code.

Regards,
        Slaven

--
use Tk;$c=tkinit->Canvas(-he,20)->grid;$x=5;map{s!\n!!g;map{create$c 'line'=>
map{$a=-43+ord;($x+($a>>3)*2=>5+($a&7)*2)}split''}split"!";$x+=12}split/_/=>'K
PI1_+09IPK_K;-OA1_+K!;A__1;Q!7G_1+QK_3CLPI90,_+K!;A_+1!KQ!.N_K+1Q!.F_1+KN.Q__1+
KN._K+1Q!.F_1+KN.Q_+1Q__+1!KQ!.N_1;Q!7G_K3,09Q_+1!K.Q_K+1Q!.F_1+KN.Q_';MainLoop

-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the



Fri, 15 Nov 2002 03:00:00 GMT  
 Increasing capacity of text canvas

Quote:


> > I'm putting together a framework for automated intelligent log watching.

> > One of the features of the system is that it be able to display logfiles
> > as it watches them.

> > I have some pretty good code going, thanks to this list and the camel
> > book, but after a certain arbitrary point, the output to (on?) the text
> > canvas stops. I am presently attempting no overt memory management for
> > the widget.

> > Is there some limitation on how much text I can pack into a scrollable
> > text canvas? (I would think there would be) and how might I manage this
> > limitation (i.e., give it more space, track the amount of memory
> > remaining available to it, etc.)?

> > Any steerage in the right direction would be greatly appreciated =^)

> I think I saw somewhere a 32767 pixel limitation in the canvas source
> code.

Yeah, I've hit this myself.  Xlib.h data structures for graphics, like
XPoint, XRectangle, etc., use shorts for coordinates and unsigned shorts for
dimensions.  I imagine this shows up in Perl/Tk somehow too.  When I exceed
these limits in Motif applications, primitives are sometimes clipped,
sometimes wrap to the other side of the screen or to the origin, or
disappear altogether.  I ended up clipping them myself.

Jim Williams

-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the



Sat, 16 Nov 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. capacity of perl array

2. Capacity Planning with NT Perl

3. looking for capacity planning resources: perl/oracle

4. Text tag configure VS Canvas itemconfigure

5. Need help with canvas text and bindings

6. Rotated text on Canvas?

7. Canvas Text Font Question

8. recovering text from a canvas

9. bounding box for text in canvas

10. Need help with canvas text and bindings

11. How to create the vertical text in canvas widget

12. Frustration with scrollbars, canvases and text.

 

 
Powered by phpBB® Forum Software