WA_HELPGROUP and Reaction HelpHints

This forum is for general developer support questions.

WA_HELPGROUP and Reaction HelpHints

Postby tbreeden » Wed Jan 23, 2013 4:46 am

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
tbreeden
 
Posts: 160
Joined: Sat Jun 18, 2011 1:57 am
Location: Charlottesville, VA, USA

Re: WA_HELPGROUP and Reaction HelpHints

Postby Rigo » Fri Jan 25, 2013 1:17 am

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
Rigo
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 340
Joined: Mon Jan 17, 2011 10:42 pm

Re: WA_HELPGROUP and Reaction HelpHints

Postby tbreeden » Fri Jan 25, 2013 4:19 am

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
User avatar
tbreeden
 
Posts: 160
Joined: Sat Jun 18, 2011 1:57 am
Location: Charlottesville, VA, USA

Re: WA_HELPGROUP and Reaction HelpHints

Postby chris » Fri Jan 25, 2013 11:08 am

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.
chris
 
Posts: 552
Joined: Sat Jun 18, 2011 12:05 pm

Re: WA_HELPGROUP and Reaction HelpHints

Postby tonyw » Mon Apr 28, 2014 12:06 am

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
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1385
Joined: Wed Mar 09, 2011 2:36 pm
Location: Sydney, Australia

Re: WA_HELPGROUP and Reaction HelpHints

Postby LyleHaze » Mon Apr 28, 2014 1:53 am

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
LyleHaze
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 520
Joined: Sat Jun 18, 2011 5:06 pm
Location: North Florida, near the Big Bend

Re: WA_HELPGROUP and Reaction HelpHints

Postby tonyw » Mon Apr 28, 2014 1:30 pm

Agreed, no argument about that particular case.
cheers
tony
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1385
Joined: Wed Mar 09, 2011 2:36 pm
Location: Sydney, Australia


Return to General Developer Support

Who is online

Users browsing this forum: No registered users and 2 guests