Page 1 of 1

Script for newLISP Function Reference Viewer.

Posted: Fri May 14, 2010 9:16 am
by johu
I make newLISP Function Reference and GUI Fuction Reference Viewer.

ScreenShot is here.(Japanese blog. 日本語の使い方もこちらで。)

Download URL is http://cid-23a9a25e1aec3626.skydrive.li ... P-help.zip

Usage: newlisp newLISP-help.lsp [directory | -URL | -URL=xxx.html] [yyy.ini] [zzz.hlp]
      directoy is the directory of newlisp_manual.html.
      xxx.html is the url or file for reading.
      yyy.ini is the initial file for Window's position and size with yyy.hlp.
      zzz.hlp is the function reference data file.

and examples:

Code: Select all

newlips newLISP-help.lsp
newlips newLISP-help.lsp /usr/share/newlisp
newlips newLISP-help.lsp -URL=/usr/share/newlisp/newlisp_manual.html <- same as the usage above.
newlips newLISP-help.lsp -URL                                                       <- The latest reference is always shown. 
newlips newLISP-help.lsp -URL=http://www.newlisp.org/downloads/newlisp_manual.html  <- same as the usage above.
newlips newLISP-help.lsp guiserver.hlp <- GUI Funcion Reference showing.
newlips newLISP-help.lsp newlisp.ini   <- Firstly, newlisp.ini and newlisp.hlp are created. At next time, Function Reference and Window's position and size are recoverd.
Thank you for reading to the last minute.

I welcome any advice, i.e. usage, code technique, mistake, etc.

Re: Script for newLISP Function Reference Viewer.

Posted: Fri May 14, 2010 9:20 pm
by cormullion
Works great on my Mac so far. Thanks!

Re: Script for newLISP Function Reference Viewer.

Posted: Sun May 16, 2010 3:57 am
by itistoday
Very nice!

One request: there doesn't seem to be a way to get out of a search without changing the topic. Can you make it so that deleting the search string brings back the whole list (and maybe bind the escape key to that action)?

Re: Script for newLISP Function Reference Viewer.

Posted: Sun May 16, 2010 9:27 am
by johu
Thank you, cormullion.
I bear Cormullion's Corollary in mind.

Thanks for request, itistoday.

I added Back button.
And deleting the search string brings back, but with return key.
An updated version is here:
http://cid-23a9a25e1aec3626.skydrive.li ... P-help.zip

Is it suitable for your request ?

old-version is here:
http://cid-23a9a25e1aec3626.skydrive.li ... 100514.zip

I use gs:text-field for InputBox, then I can't do an escape key work.
If using gs:text-pane, I can do. But it may request a focused InputBox.
And I have not learned the usage of gs:key-event, yet

If you do not like it, I will improve it.

P.S. additionally, Back Button has a simple history of search.

Re: Script for newLISP Function Reference Viewer.

Posted: Sun May 16, 2010 7:15 pm
by itistoday
Cool, thanks johu! Seems to work nicely. :-)

Re: Script for newLISP Function Reference Viewer.

Posted: Mon May 17, 2010 9:45 am
by johu
Sorry, Back-Button version has bug.

Search-button without search word enables Back Button.

Corrected version is here:
http://cid-23a9a25e1aec3626.skydrive.li ... P-help.zip