cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Window quit problems

Newbie

Window quit problems

>I am converting a large number of legacy scripts from Adept 5.0.2 to 6.0j
>on a Solaris UNIX platform. It appears that the windowquithook no longer
>is supported, although I can find nothing indicating such. I have converted
>over to use a window_quit_callback ( with some thanks to Per-Ake Ling
>et. al. for their timely discussions the past week in this area).
>
>The situation I have is that a complex set of functions operate before and
>AFTER the Modify Attributes window is displayed. I have several cleanup
>operations that need to occur depending on how the Modify Attribute
>window is closed. In 5.0.2 the windowquithook provided me the reason
>for the window closure. The windowquit hook no longer seems to be supported.
>I have tried to use the window_add_callback with a cbtype
>of 'quit' but the function specified is never called. if I do the same thing
>but specify a cbtype of 'destroy' then the specified routine is called,
>however, only the 'quit' callback passes the reason (code) that the
>function was called. Is this a bug or am I completely confused? Here
>are some code snippets if they help:
>
>To start, when a document is first brought up the following is executed...
>
>doc_add_callback( 0, 'modify_tag', 'set_mod_tag_cb');
>
Tags (2)