[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Sep 29 13:59:51 1999 
Subject:Help on resizing 
From:Robin Popplestone 
Volume-ID:990929.01 

I'm having problems with what to do when a user resizes a shell
window containining lots of Poplog widgets. It seems that
one can catch the resize request as described in ref xt_libs


XptResizeResponse(______widget) -> __________widentproc                      [_________procedure]
__________widentproc -> XptResizeResponse(______widget)                      [_________procedure]
        Assigns  an  action  to  be  called  when  widget  is   resized.
        __________widentproc is a  word, ident or  procedure. If it  is a word  or
        ident  then  valof/idval  is  used  to  obtain  the   underlying
        procedure. The procedure should takes one argument, ______widget,  and
        return  no  results.  The  procedure  can  perform  any  actions
        necessary to update the contents  of the widget, but should  not
        itself cause the widget  to resize since this  may cause a  race
        condition.

but this gives no indication of the parameters of the resize
event. The width and height of the shell widget have their
OLD values at the time this request is handled. There seems
to be no way of finding the NEW values, which is what
one wants if one is to do anything sensible. I've had
no luck grepping around the source code for XVED etc...


Robin.