On Wed, 26 Dec 2007, Steffen wrote:

> Hi,
> 
> I am wondering if event handlers should be added in MUIM_Show rather
> than MUIM_Setup?  Most examples I found do it in MUIM_Setup but
> MUIM_Show would make more sense for most events since the object only
> receives e.g. mouse clicks when it is on screen (an object hidden in a
> tab page does not need to know about mouse clicks for example).

I usually add and remove event handlers in MUIM_Show/Hide.

For event handlers you probably wish to use this flag:

#define MUI_EHF_GUIMODE     (1<<1)  /* set this if you dont want your handler 
to be called */
                                /* when your object is disabled or invisible */

Unfortunately I have no idea is this supported in MUI 3.8 or even MUI 3.9. 
Maybe :)


  Ilkka



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:
    mailto:[EMAIL PROTECTED] 
    mailto:[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