Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline KronosTopic starter

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
It's monday....time for another stupid MUI-question ;)
« on: September 22, 2003, 08:55:07 PM »
O.k. I allready discussed this sometimes ago with itix on irc, but it
seems that I'm just to slow  even for the easiest instructions  .....


I got a costum class,and this should have an extra attribute, which I than
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 ?

I do get a bunch of OM_GETs at app-start,but none afterwards ....
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

Offline iamaboringperson

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 5744
    • Show only replies by iamaboringperson
Re: It's monday....time for another stupid MUI-question ;)
« Reply #1 on: September 22, 2003, 08:58:48 PM »
Tuesday must be ReAction day then! ;-)


--edit: Take spaces out of day names... --
 

Offline falemagn

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 269
    • Show only replies by falemagn
    • http://www.aros.org/
Re: It's monday....time for another stupid MUI-question ;)
« Reply #2 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 Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: It's monday....time for another stupid MUI-question ;)
« Reply #3 on: September 22, 2003, 09:30:33 PM »
You mean you want to be notified when your attribute has been changed?

Tell you, both MUI and Reaction's API suck ;-) What's needed is a clean, C/C++ style compliant...;-)

Sorry Kronos, I don't actually know the answer so I'll shut up now :-)
int p; // A
 

Offline KronosTopic starter

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: It's monday....time for another stupid MUI-question ;)
« Reply #4 on: September 22, 2003, 09:34:05 PM »
@Karlos

More the other way round.

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.
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

Offline falemagn

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 269
    • Show only replies by falemagn
    • http://www.aros.org/
Re: It's monday....time for another stupid MUI-question ;)
« Reply #5 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? :-)


 

Offline KronosTopic starter

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: It's monday....time for another stupid MUI-question ;)
« Reply #6 on: September 23, 2003, 03:22:51 PM »
Quote

Well, have you read my reply? :-)


Yes I did,but until right now had no time to try ....

Seems to work o.k. sofar.

@Karlos
That isn't really a special MUI/ReAction-prob ....
I stillcringe when I remeber how long it me to find out how to set the
IMsg->code in a GadgetUP-event coming from my boopsi-object
(based on RKRMBut)  :-x  :-x

There is a C++-wrapper for MUI,so that wouldn't be a prob. And writing
better doku for that sounds somewhat easier than writing a new GUI-lib
AND a good doku for that  :-o
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else