Resizing a scrollable form
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

Resizing a scrollable form

From: Noel Hunt <noel.hunt@gmail.com>
Date: Mon Oct 31 2005 - 07:17:42 CET

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?
Received on Mon Nov 21 00:37:19 2005