WA_HELPGROUP and Reaction HelpHints

This forum is for general developer support questions.
Post Reply
User avatar
tbreeden
Posts: 160
Joined: Sat Jun 18, 2011 12:57 am
Location: Charlottesville, VA, USA
Contact:

WA_HELPGROUP and Reaction HelpHints

Post by tbreeden »

From the Autodocs description of WA_HELPGROUP, I was hoping that it would be usable with Reaction gadget help hints so that bubble help would appear over gadgets for a non-active window's gadgets in a Help group set of windows.

Unfortunately, it does not seem to work this way. I can't get hints displayed over gadgets unless the Reaction Window is active.

Is there something I'm doing wrong, or is it just not involved with Reaction help hints?

Thanks,

Tom
User avatar
Rigo
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 349
Joined: Mon Jan 17, 2011 9:42 pm

Re: WA_HELPGROUP and Reaction HelpHints

Post by Rigo »

AFAIK, helphints cannot work with inactive windows as the mousemove (an consequently the mouse position) events are not sent to the windows IDCMP port. If the autodocs suggest otherwise, please let us know so that they may be corrected.

Simon
User avatar
tbreeden
Posts: 160
Joined: Sat Jun 18, 2011 12:57 am
Location: Charlottesville, VA, USA
Contact:

Re: WA_HELPGROUP and Reaction HelpHints

Post by tbreeden »

Rigo wrote:AFAIK, helphints cannot work with inactive windows as the mousemouse (an consequently the mouse position) events are not sent to the windows IDCMP port. If the autodocs suggest otherwise, please let us know so that they may be corrected.
Not exactly. I guess I was trying to read between the lines. "window_cl.doc" does say the you may use WA_HelpGroup on your not yet open window class.
I took this as possibly implying that the Intuition HelpGroup feature was integrated into the help hints implementation.

I wonder if I can GA_GadgetHelp on a Reaction gadget and the Intuition HelpControl() function to turn on Intuition IDCMP_GadgetHelp messages on a Reaction Window in a WA_HelpGroup, and use the IDCMPHook to see these?

The active problem here is that it is not possible to get help hints on the buttons in a standalone SpeedBar (ie, on sitting in its own WA_ToolBox window) because it never becomes active.

Thanks,

Tom
chris
Posts: 552
Joined: Sat Jun 18, 2011 11:05 am
Contact:

Re: WA_HELPGROUP and Reaction HelpHints

Post by chris »

tbreeden wrote:Not exactly. I guess I was trying to read between the lines. "window_cl.doc" does say the you may use WA_HelpGroup on your not yet open window class.
I took this as possibly implying that the Intuition HelpGroup feature was integrated into the help hints implementation.

I wonder if I can GA_GadgetHelp on a Reaction gadget and the Intuition HelpControl() function to turn on Intuition IDCMP_GadgetHelp messages on a Reaction Window in a WA_HelpGroup, and use the IDCMPHook to see these?
Ah, this is interesting, I was about to report a serious bug/inconsistency with window.class and IDCMP_GADGETHELP (and the other GadgetHelp stuff).

The way Commodore implemented GadgetHelp is that it is supposed to send IDCMP_GADGETHELP when the user presses the HELP key. The application can then open some help file (normally an AmigaGuide) relating to the exact gadget the pointer is over.

The way it works in window.class, is that if WINDOW_GadgetHelp is enabled, the application receives a barrage of WMHI_GADGETHELP messages whether HELP is pressed or not. It's a blatant misuse of GadgetHelp, and seems to go back to ClassAct days. Can we have a correct implementation of GadgetHelp in window.class please?

Anyway, WA_HelpGroup is related to this botched context-sensitive help system and the messages for inactive windows will go to your active window, if it is in the same group. As I say, it's completely broken, and although superficially this might look like what you need, I don't think you can get HelpHints on inactive windows, and even if you can I don't think you can track across individual buttons in a speedbar gadget using this feature.
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1438
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: WA_HELPGROUP and Reaction HelpHints

Post by tonyw »

Ye gods, the last thing I want to see is those bloody "Help" hints appearing when I move the mouse over an inactive window.
cheers
tony
User avatar
LyleHaze
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 521
Joined: Sat Jun 18, 2011 4:06 pm
Location: North Florida, near the Big Bend

Re: WA_HELPGROUP and Reaction HelpHints

Post by LyleHaze »

tonyw wrote:Ye gods, the last thing I want to see is those bloody "Help" hints appearing when I move the mouse over an inactive window.
I can appreciate your sentiment, but the current setup does make help hints useless for a WA_ToolBox window, and that's one place where gadget help would be most useful.
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1438
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: WA_HELPGROUP and Reaction HelpHints

Post by tonyw »

Agreed, no argument about that particular case.
cheers
tony
Post Reply