Welcome, Guest. Please login or register.

Author Topic: It's monday....time for another stupid MUI-question ;)  (Read 2133 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline falemagn

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 269
    • Show all replies
    • http://www.aros.org/
Re: It's monday....time for another stupid MUI-question ;)
« on: September 22, 2003, 09:28:26 PM »
Quote

I got a costum class,and this should have an extra attribute, which I then want to use as trigger for an Notify-method.

I know that it has something to do with OM_SET/GET, but how do I make sure that the attribrute is actually checked forafterI set it ?


You simply need to forward the OM_SET message to your superclass. This is a snippet code from the UAE gui I'm writing for AROS (btw, why the hell isn't the
Code: [Select]
... bbcode available, uh?:

Quote

struct TagItem *tags, *tag;

for
(
    tags = message->ops_AttrList;
    (tag = NextTagItem(&tags));
)
{
    switch (tag->ti_Tag)
    {
          ....
    }
}

return DoSuperMethodA(CLASS, self, (Msg)message);



Sorry for the bad indentation, but without the [code] thingie I couldn't do better.
 

Offline falemagn

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 269
    • Show all replies
    • http://www.aros.org/
Re: It's monday....time for another stupid MUI-question ;)
« Reply #1 on: September 22, 2003, 11:20:37 PM »
Quote

I want the app to be able to check the attribute via a Notify that I setup
at progstart. Than I want to set the attribut inside my class, and the
app should react according to that notify.


Well, have you read my reply? :-)