Hello

I have added some popup Nlistviews to some buttons.

When the popup opens I wish to disable some other gadgets in my main window
and then re-enable them when the popup closes.

I am currently using:

        MUIA_Popobject_StrObjHook, &OpenHook,
        MUIA_Popobject_ObjStrHook, &CloseHook,   

to call functions which do what I need.

However on closing, the function is only called if I close the popup from my
listview using:

  DoMethod(TimeList,MUIM_Notify,MUIA_NList_TitleClick,MUIV_EveryTime,
           TimeButton, 2, MUIM_Popstring_Close, TRUE); 

The hook gets called and my gadgets in the main winodw become enabled.


BUT - if I close the popup from the PopButton the CloseFunc function does
NOT get called and my other gadgets remain disabled which is not want I
need. 

This seems to be because clicking the Pop buttoms uses a
MUIM_Popstring_Close, FALSE which I can see the point of in some cases, you
may not want to pass things from your popup if closing it. In fact I use
the gadget that way but what I do need to know is when the popup window
closes regardelss of whether MUIM_Popstring_Close uses a TRUE value or a
FALSE one.

Looking at the docs, it appears that using :

   MUIA_Popstring_CloseHook,&PopCloseHook,

should do what I want and I can enable my gadgets using that function.
However, I cannot get this to work at all, it seems never to call the hook
function when the popup closes. The equivalent MUIA_Popstring_OpenHook
seems to do nothing either.

Does anyone have any ideas, are there examples anywhere of using
MUIA_Popstring_CloseHook and MUIA_Popstring_OpenHook ?



Regards,

Bill.



------------------------------------

Visit http://www.amiga.dk/tumult for MUI-related
information, especially about MUI custom classes.Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MUI/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/MUI/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to