Re: wxIDE & EuHTHelp.exw

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 blink)
> 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. smile
 
Regards,

Ken Rhodes
100% MicroSoft Free
SuSE Linux 10.0
No AddWare, SpyWare, or Viruses!
Life is Good  smile

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu