Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with Help Files!!!

Status
Not open for further replies.

Stretchwickster

Programmer
Apr 30, 2001
1,746
GB
Hi all,

I've included a Help File into my application but I'm trying also to add little popup windows when the Question Mark icon (in the top-right corner) is placed on an edit control. I've managed to do this using the WinHelp API command, and passing a macro called 'PopupContext' to this routine. As a result, I get a little popup menu everytime I drop the Question-Mark icon on one of my edit controls.

However, I'm a bit fussy! I want to change the Colour of the popup box which is apparently accomplished using the above routine with a macro called 'SetPopupColor(r,g,b)'. I've tried this but it just generates an error. I've scoured the internet but there are very few pages and they all seem to agree with my code. Btw, here is my code:
Code:
MacroPointer := StrPCopy(MacroName, 'SetPopupColor(255, 255, 224)');
WinHelp(handle, PChar(HELP_FILENAME), HELP_COMMAND, LongInt(MacroPointer));
Anyone got any ideas or know of any more appropriate forums to post this question to?

Your help would be much appreciated! [3eyes]
 
Back from the days I had to write a decent helpfile (.hlp) for an app, I used HelpScribble (shareware), that mentioned some 'issues' about trying to change the color of the popups not really being changeable, or only after some rigorous colorchanges to other backgrounds as well. This probably has to do with the win3.1 background of the hlp filestructures, so either you'll have to use other methods, like balloonhelp, or live with this 'feature'.

I also saw nice help and contexthelp related components on torry.net, so a look in that archive might prove useful?

HTH,
TonHu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top