Advanced Search
Mail us
Home    Manuel    Links    Faq    Submit a tcl/tk Reference    Contact Us

    Some examples tcl/tk codes     Man of Bwidget     Man of blt     mkwidget screenshots     TkOgl     Video Demo real.


  How can I bind the ResizeRequest event?
 
 The `ResizeRequest` event is used (typically by window managers) to
interpose on configuration changes before they occur, possibly
preventing them from occurring altogether and support for it was removed
in Tk4.  There is almost no imaginable case where Tk scripts should
really be asking for `ResizeRequest` events; people tended to use them
when what they really wanted was `Configure` events (which trigger after
the resize has occured), and this produced very strange behavior in
their programs.

Try `bind .widget  { puts "%W is now %w x %h" }` instead.