• Welcome to PowerBasic Museum 2020-A.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

zHelpAPI (version 1.01)

Started by Patrice Terrier, April 27, 2009, 08:22:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Patrice Terrier

zHelpAPI is a new "On line" utility to check the syntax and the purpose of a specific SDK API.

It is based on the excellent José Roca's API documentation and his WebBrowser example.

I have added the combobox and all the code that would parse the URL to find and display the API documentation.

I wrote this project in a short delay, thus i didn't had much time to test it, let me know if you find anything wrong.



...

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

#1
The initial purpose of this project was to add online API documentation in SED.

Things to do:
- Add another combobox or tree index, to choose available urls for other reference guides.
- Add a refresh button to download the lattest html index from the web.


Decoding of the Java script to get the URLs being stored in the hidden listbox.

          sUrlPathToUse = "http://www.jose.it-berater.org/gdi/"
          sLocalFile = zGetTempPath + "zHelpIndex.htm"
          IF NOT ISFILE((sLocalFile)) THEN
             Done = zDownloadFile(sUrlPathToUse + "iframe/tree.htm", (sLocalFile))
          ELSE
             Done = -1
          END IF
          IF Done THEN
             CALL zSetBufinChar(CHR$(10))
             Done = 0
             DO WHILE Done = 0
                sCfg = RTRIM$(LTRIM$(zBufin((sLocalFile), Done)), ");")
                IF INSTR(LCASE$(sCfg), "tree.add(") = 0 THEN
                   sCfg = ""
                ELSE
                   sCfg = MID$(sCfg, 10)
                   IF PARSE$(sCfg, 2) < "1100" THEN sCfg = ""
                END IF
                IF LEN(sCfg) THEN
                   sAPI = TRIM$(PARSE$(sCFg, 3), "'")
                   sLink = TRIM$(PARSE$(sCfg, 4), "'")
                   Replace "../" WITH sUrlPathToUse IN sLink
                   IF LEN(sLink) THEN
                      CALL SendMessage(GetDlgItem(hWnd, %ID_COMBOBOX), %CB_ADDSTRING, 0, STRPTR(sAPI))
                      CALL SendMessage(GetDlgItem(hWnd, %ID_LISTBOX), %LB_ADDSTRING, 0, STRPTR(sLink))
'//                   zTrace((sAPI + ", " + sLink))
                   END IF
                END IF
             LOOP


...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

zHelpAPI, has been updated to version 1.01.

What is new:
- Added a resource manifest to use XP/VISTA theme style.
- Added button "Update" to download the latest Index from the internet.

The new ZIP file is attached to the first post of this thread.

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Petr Schreiber

Thanks Patrice,

this is very useful, I am tired of MS HLP, this looks much better.
Is this what was announced with the SDK banner few days ago?


Petr
AMD Sempron 3400+ | 1GB RAM @ 533MHz | GeForce 6200 / GeForce 9500GT | 32bit Windows XP SP3

psch.thinbasic.com

Patrice Terrier

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

The first post of this thread has been updated, to fix the ZIP file corruption caused by the "Server Collapse".

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com