All those IntuiTicks, why?

6 posts / 0 new
Last post
OldFart
OldFart's picture
Offline
Last seen: 2 months 3 weeks ago
Joined: 2010-11-30 14:09
All those IntuiTicks, why?

Hi,

In about every program I made, that uses ReAction, I use this WA_IDCMP construction:

  1. WA_IDCMP, 0
  2. | IDCMP_CLOSEWINDOW
  3. | IDCMP_NEWPREFS
  4. | IDCMP_EXTENDEDMOUSE
  5. | IDCMP_GADGETUP
  6. ,

Nowhere am I (aware of) listening for IntuiTick-events nor MouseMove-events, yet I am bombarded with messages related to those events! They just take up precious CPU-cycles without much ado.

How can I suppress these messages from arriving on my port, i.e. cluttering the wait()-loop?

On a side note: what is IDCMP_NEWPREFS indicating? It is just there because I once thought it would notify me of some changes to the preferences, so I could close and reopen the window(s). Not so, or I missed something.

OldFart

thomas
thomas's picture
Offline
Last seen: 2 months 2 weeks ago
Joined: 2011-05-16 14:23
Re: All those IntuiTicks, why?

With ReAction you don't have control of IDCMP flags. You can only add to those that window.class already uses for its own purposes. For example you don't need to set CLOSEWINDOW or GADGETUP, they are always set.

Regarding specific IDCMP flags, the intuition.library/ModifyIDCMP autodocs should have a detailed description of each flag.

hypex
hypex's picture
Offline
Last seen: 3 months 23 hours ago
Joined: 2011-09-09 16:20
Re: All those IntuiTicks, why?

The IDCMP_NEWPREFS relates to the old Prefs program settings. It's use is restritcted which would explain why things don't show up. But I don't know why they didn't extend it's usage and they don't explain how to get events from the new prefs mechanism.

OldFart
OldFart's picture
Offline
Last seen: 2 months 3 weeks ago
Joined: 2010-11-30 14:09
Re: All those IntuiTicks, why?

@ thomas

Thank you for your clear answer.

OldFart

OldFart
OldFart's picture
Offline
Last seen: 2 months 3 weeks ago
Joined: 2010-11-30 14:09
Re: All those IntuiTicks, why?

@hypex

That was my guess already, about IDCMP_NEWPREFS being obsolete. And the method of installing notifications on a number of prefs settings seems to me a bit counter productive.

Would it be much of a hassle to have IPrefs broadcast changes in preferences, I wonder?

OldFart

hypex
hypex's picture
Offline
Last seen: 3 months 23 hours ago
Joined: 2011-09-09 16:20
Re: All those IntuiTicks, why?

I agree, with having IPrefs broadcast changes in preferences, but I don't know how much of a hassle it would be. The docs don't say much about IDCMP_NEWPREFS nor if it has any detail on what changed. In any case I don't see why they can't be extended with extra fields set in the message. It seems a bit vague to expect the programmer to lock onto a prefs file and which one? As there is ENV: and ENVARC:. This is the job of Intuition, not DOS, but I only see this as forcing the programmer to manually use DOS for what should be built into Intuition and what used to be. :-?

Log in or register to post comments