For Programmers: Free Programming Magazines  


Home > Archive > Tcl > October 2005 > Resizing a scrollable form









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Resizing a scrollable form
Noel Hunt

2005-10-31, 3:57 am

There are 2 examples of scrollable forms, one in Effective TCL
programming which
binds to a <Configure> event to set the scroll region of the view port
when the
widgets inside the viewport request a new geometry, and one in the
Welch and Jones
book which simply uses a `tkwait visibility' on one of the widgets in
the form
inside the viewport before actually setting up the scroll region.

Both approaches work fine for the initial setup of the scroll region,
but my
problem is how to handle manual resize requests from the user. Neither
of the
above examples can do this. I assume this is because resizing the
canvas has
no effect on the embedded window. I suppose I could catch the
<Configure>
request on the canvas and then resize the widgets inside the embedded
window
accordingly but is this the correct approach?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com