Board index » cppbuilder » How to implement the "What's This?" form border icon?
{*word*104}Sapien
![]() CBuilder Developer |
How to implement the "What's This?" form border icon?2008-02-21 11:45:03 AM cppbuilder10 Howdy, I'm using C++ Builder 6.0, which supports only WinHelp-type .HLP files (at least natively). I managed to get an acceptable HTML Help-type .CHM file working using a Delphi unit posted on the HelpScribble HTML Help composer web site. This did not require registering a help viewer, but rather hooks directly into a .LIB file created from the Windows-supplied hhctrl.ocx. My compile options may be screwy since following the directions given did not work, but I finally figured out what was wrong and it's hunky-dory now. My problem is that, while I can code a Help button that provides all manner of help (topic, contents, index, context), I do not know how to code the "What's This?" form border icon, nor the F1 key, to display context-sensitive help. I've surfed the 'Net for the equivalent of several days without success. I find articles that *mention* the "?" icon, but nothing that tells me how to hook it up. I thought I could use an OnClick event to discern whether the cursor was an arrow, in which case I proceed with the normal routine, or a question mark, in which case I instead display context-sensitive help. But it seems that the cursor turns back into an arrow as soon as the click is made, so it always comes to the event as an arrow. Borland must surely support this, since clicking the icon does turn the cursor into a question mark. I just don't know what to do after that. Can anyone help me out here? And conversely, if anyone needs to know how to get HTML Help working in the first place (on versions prior to 2007, where it's built-in), I can provide detailed instructions. Thanks in advance, {*word*104}Sapien |