Re: Scrollable canvas with images - same result!
From: Russ (r.stimler_NO_S_PAm_at_us.ibm.com)
Date: 01/16/04
- Next message: Patrick Finnegan: "Re: String Match - not matching"
- Previous message: Dave Bodenstab: "Re: Wanted: pkg to read/write windows .lnk/.pif files"
- In reply to: ulis: "Re: Scrollable canvas with images"
- Next in thread: ulis: "Re: Scrollable canvas with images - same result!"
- Reply: ulis: "Re: Scrollable canvas with images - same result!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 16 Jan 2004 00:49:02 GMT
Error: unknown option "-padx" while executing "frame $w.scrolled
-highlightt 0 -padx 0 -pady 0". After removing the "-pad...", It works fine.
So I changed the "pack" to "grid" about 4 items into each row. I then
tried to loop up to 5000 times adding rows to the frame. It crapped out
at 2482 lines, the exact same problem I had with my original code when I
was using a canvas.
Running it on Linux with KDE, the window just got garbled and couldn't
be scrolled. On AIX using an Xwin32 emulator to my PC, it failed with an
error out of memory, and on windows 2000 it left the window blank and
put all the widgets in the upper left corner of the screen then locked
up. In every case I had to kill the processes.
So I guess my question remains the same - How to I scroll a large list
of widgets gridded onto either a frame or a canvas?
ulis wrote:
>>I tried the first demo without the canvas and it has a syntax error with
>>the "-padx" on a frame command. I commented this out, but only get an
>>empty window (with scrollbars) but no lines within.
>
>
> In the script -padx is an option of the pack command (and can't be
> associated with frame).
>
> I verified the example from the Wiki and it worked.
> Looks like you have a problem with braces maybe following an added
> char after an endline backslash.
>
> You can get the package (and the first example) here:
> http://perso.wanadoo.fr/maurice.ulis/tcl/ScrolledFrame/scrolledframe.tcl
>
> ulis
- Next message: Patrick Finnegan: "Re: String Match - not matching"
- Previous message: Dave Bodenstab: "Re: Wanted: pkg to read/write windows .lnk/.pif files"
- In reply to: ulis: "Re: Scrollable canvas with images"
- Next in thread: ulis: "Re: Scrollable canvas with images - same result!"
- Reply: ulis: "Re: Scrollable canvas with images - same result!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|