Re: Scrollable canvas with images - same result!

From: Russ (r.stimler_NO_S_PAm_at_us.ibm.com)
Date: 01/16/04


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



Relevant Pages

  • Re: CScrollView: How to Tell If Scroll Bar Visbile
    ... Make your window that large. ... Adjust the parent frame ... Note it is your responsibility to set the scroll range, so once you have resized the ...
    (microsoft.public.vc.mfc)
  • Re: persistent TCP connection over page reloads ?
    ... say a frame or another window. ... The global execution context: no. ... globalStorage & userData (this is very unlikely to work, ...
    (comp.lang.javascript)
  • Re: Need help with time stretching using STFT
    ... data from the input buffer, applies a linear window function, ... frequency of the sinusoid that ... then knowing what the frequency is, if the previous frame has a bump ... adjust is the value of that common time displacement. ...
    (comp.dsp)
  • RE: multiple modal dialogs
    ... There are two different ways of showing dialogs: ... Modal dialog (and any window for that matter) runs on the top of all ... While modal dialog relies on own message loop modeless relies on application ... that these frame windows can have there own modal ...
    (microsoft.public.vc.mfc)
  • TCP/IP connections problems on Win2003 Entreprise Server
    ... Time since reference or first frame: ... Flags: 0x04 (Don't Fragment) ... Header checksum: 0x16eb ... Window scale: 0 ...
    (microsoft.public.windows.server.networking)

Loading