newLISP Fan Club

Forum => newLISP in the real world => Topic started by: johu on May 14, 2010, 02:16:11 AM

Title: Script for newLISP Function Reference Viewer.
Post by: johu on May 14, 2010, 02:16:11 AM
I make newLISP Function Reference and GUI Fuction Reference Viewer.



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



Download URL is //http://cid-23a9a25e1aec3626.skydrive.live.com/self.aspx/.Public/newLISP-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:
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.
Title: Re: Script for newLISP Function Reference Viewer.
Post by: cormullion on May 14, 2010, 02:20:24 PM
Works great on my Mac so far. Thanks!
Title: Re: Script for newLISP Function Reference Viewer.
Post by: itistoday on May 15, 2010, 08:57:09 PM
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)?
Title: Re: Script for newLISP Function Reference Viewer.
Post by: johu on May 16, 2010, 02:27:18 AM
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.live.com/self.aspx/.Public/newLISP-help.zip



Is it suitable for your request ?



old-version is here:

//http://cid-23a9a25e1aec3626.skydrive.live.com/self.aspx/.Public/old/newLISP-help-20100514.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.
Title: Re: Script for newLISP Function Reference Viewer.
Post by: itistoday on May 16, 2010, 12:15:15 PM
Cool, thanks johu! Seems to work nicely. :-)
Title: Re: Script for newLISP Function Reference Viewer.
Post by: johu on May 17, 2010, 02:45:48 AM
Sorry, Back-Button version has bug.



Search-button without search word enables Back Button.



Corrected version is here:

//http://cid-23a9a25e1aec3626.skydrive.live.com/self.aspx/.Public/newLISP-help.zip