Posted: Wed Feb 13, 2002 11:44 pm
Restored from previous forum. Originally posted by Don.
Here's a little application I wrote to try out a few techniques. I thought it would be fun to try to combine the ideas from these postings:
viewtopic.php?t=628">http://forums.pure ... .php?t=628 Tiny code to download a web page%2Ffile&Forum_Title=Tricks %27n%27 Tips
viewtopic.php?t=706 HTML in your program%2E%2E%2E&Forum_Title=Tricks %27n%27 Tips
- thanks to PB and Franco for these.
It's a very basic web browser based on GipsySoft's QHTMLight.dll
It's not really meant as a proper web browser beacuse the QHTMLight.dll was not designed for the purpose I've put it to . GipsySoft's demo version of the dll, whch I used, is pretty limited - it doesn't handle forms, script, tables with spanning rows/columns etc and it only handles bmp images (I didn't implement images in the browser). I really intended the code as a source of information which some may find useful. You'll probably need to know a bit about the Windows API to understand everything in the code, but there are some useful techniques, including:
- how to use PB's low level callback to communicate with the main event loop
- how to create an editable combobox
- how to use a non-standard font in the combobox
- how to use a timer in a separate thread & communicate with the main event loop
- how to use comms routines in a thread and timeout with the timer thread
- how to pick up PB GadgetIDs in the low level callback, if necessary
I've only tested it on Windows ME with PB 2.90. Any problems & I'd suggest adding the PB dll library and calling the QHTM_Initialise function. If anyone's interested, I have some code written in PB which achieves the same as the URLDownloadToFile API call & reads the network data properly ... I don't think this method is entirely correct:
viewtopic.php?t=151 a web page%3F&Forum_Title=Beginners
You can download the TinyBrowser at
If people are interested I'll put it on the PB rosources site.
Don
Here's a little application I wrote to try out a few techniques. I thought it would be fun to try to combine the ideas from these postings:
viewtopic.php?t=628">http://forums.pure ... .php?t=628 Tiny code to download a web page%2Ffile&Forum_Title=Tricks %27n%27 Tips
viewtopic.php?t=706 HTML in your program%2E%2E%2E&Forum_Title=Tricks %27n%27 Tips
- thanks to PB and Franco for these.
It's a very basic web browser based on GipsySoft's QHTMLight.dll
It's not really meant as a proper web browser beacuse the QHTMLight.dll was not designed for the purpose I've put it to . GipsySoft's demo version of the dll, whch I used, is pretty limited - it doesn't handle forms, script, tables with spanning rows/columns etc and it only handles bmp images (I didn't implement images in the browser). I really intended the code as a source of information which some may find useful. You'll probably need to know a bit about the Windows API to understand everything in the code, but there are some useful techniques, including:
- how to use PB's low level callback to communicate with the main event loop
- how to create an editable combobox
- how to use a non-standard font in the combobox
- how to use a timer in a separate thread & communicate with the main event loop
- how to use comms routines in a thread and timeout with the timer thread
- how to pick up PB GadgetIDs in the low level callback, if necessary
I've only tested it on Windows ME with PB 2.90. Any problems & I'd suggest adding the PB dll library and calling the QHTM_Initialise function. If anyone's interested, I have some code written in PB which achieves the same as the URLDownloadToFile API call & reads the network data properly ... I don't think this method is entirely correct:
viewtopic.php?t=151 a web page%3F&Forum_Title=Beginners
You can download the TinyBrowser at
If people are interested I'll put it on the PB rosources site.
Don