Stretchwickster
Programmer
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:
Anyone got any ideas or know of any more appropriate forums to post this question to?
Your help would be much appreciated!
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));
Your help would be much appreciated!