In PBedit's context sensitive help system, looking up keywords that
have several uses, like COMM, always fails to show the "Found" popup
dialog to select from. It flashes, but then disappears. At least for
me it does. Maybe there is an update of the Roboex files somewhere?
Anyway, while struggling with next version of Poffs, I thought I'd
implement the same context sensitive help system in the editor I'll
be using to view messages, and found that calling WinHelp twice
fixes this "problem".
Maybe useful for those of you who are developing your own PB editors.
BTW, same approach works fine with any help file, this including
WinApi32.hlp - but then you only have to call it once, of course,
like in first case below..
------------------
have several uses, like COMM, always fails to show the "Found" popup
dialog to select from. It flashes, but then disappears. At least for
me it does. Maybe there is an update of the Roboex files somewhere?
Anyway, while struggling with next version of Poffs, I thought I'd
implement the same context sensitive help system in the editor I'll
be using to view messages, and found that calling WinHelp twice
fixes this "problem".
Maybe useful for those of you who are developing your own PB editors.
BTW, same approach works fine with any help file, this including
WinApi32.hlp - but then you only have to call it once, of course,
like in first case below..

Code:
#COMPILE EXE #INCLUDE "WIN32API.INC" $PBhelp = "C:\PBDLL60\BIN\pbdll.hlp" '<- NOTE! change to *your* PB path!!! '¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ ' Small test of calling PB's help file for context sensitive help. '¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ FUNCTION PBMAIN () AS LONG LOCAL I AS LONG, txt AS STRING MSGBOX "Call up help for COMM, PB way (?)" '<- this is standard way and should work.. txt = "COMM" '<- show context sensitive help for this one I = WinHelp(0, $PBhelp, %HELP_KEY, BYVAL STRPTR(txt)) '<- %HELP_PARTIALKEY gives same result MSGBOX "Call up help for COMM, my way" I = WinHelp(0, $PBhelp, %HELP_INDEX, 0&) '<- for PB help, first activate once, I = WinHelp(0, $PBhelp, %HELP_KEY, BYVAL STRPTR(txt)) '<- then try to find context sensitive help END FUNCTION
Comment