Re: wxIDE & EuHTHelp.exw
- Posted by Kenneth Rhodes <ken_rhodes30436 at yahoo.com> Feb 06, 2006
- 473 views
Pete Lomax wrote: > > On Sat, 04 Feb 2006 16:59:15 -0800, Kenneth Rhodes > <guest at RapidEuphoria.com> wrote: > > >Pete seemed to feel this could not easily be done with > >Edita - perhaps I'm missing something. My guess is that > >it should only take several lines of simple code to > >pass the search string for the current "word" in the editor > >to EuHTHelp.exw using system_exec. > > > >But maybe I am wrong > You're right, you're wrong ) > I need to either de-win32lib Brians' wrap of hhctrl.ocx to use a chm > file and/or wrap the WinHelp API to use .hlp files. I have searched > the archives and cannot find much evidence of success with it. > Otherwise it will just open on the index. > I appreciate your patience, Pete. Please help me understand - if system or system_exec can be executed from within Edita, then all that is required to use Juergen's program is little more than this line of code:
if CONTEXT_SENSITIVE_HELP_KEY then VOID = system_exec("EuHTHelp.exw" & " " & search_term, 0) end if
"search_term" is a sequence containing the current "word" just typed into the editor. EuHTHelp.exw prepends the path of the relevant *.htm doucumentation file as well as "#" to "search_term" - this path is appended to the execution path of the user's browser of choice and "executed" by system_exec(). Juergen developed EuHTHelp.exw under DOS/WINDOWS, but it is generic code. None of that complicated Windows stuff is required - just a browser. Juergen placed his code in the public domain. You can modify a couple of lines and paste it directly into Edita -r wxIDE for that matter:
if CONTEXT_SENSITIVE_HELP_KEY then ** EuHTHelp code ** end if
So, as you can see, I'm still in a state of denial about being wrong on this. Regards, Ken Rhodes 100% MicroSoft Free SuSE Linux 10.0 No AddWare, SpyWare, or Viruses! Life is Good