Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

HTMLView Library

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-04-2007, 01:38 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Ioannina, Greece
Posts: 356
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default HTMLView Library

Hi,

This is dzHTMLView Library.

It is very simple now to browse internet sites or display local html code or pages from your b4ppc app. It can be used even to implement a completely new User Interface which also can be changed at runtime by providing new html fles.

Has also the ability to encode unicode to UTF8 (built-in function).

It can also be used to URLEncode and URLDecode strings (built-in functions).
It can be used only for PPC apps. For desktop is provided a dummy interface for design help.

Libraries and samples attached.

Based on the code found here
URLEncode and URLDecode has be taken from the Mono project (.NET port to Linux)

Image 1. Web Browser (test2)


Image 2. User Interface (test4)


Image 3. User Interface with Input Fields. It's values are visible to B4PPC code (test5)
Attached Files
File Type: zip dzHTMLViewLib.zip (18.4 KB, 490 views)
File Type: sbp test3.sbp (962 Bytes, 333 views)
File Type: sbp test2.sbp (1.1 KB, 310 views)
File Type: zip test4.zip (1,012 Bytes, 293 views)
File Type: zip test5.zip (1.5 KB, 304 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr

Last edited by dzt : 09-04-2007 at 07:38 PM. Reason: Add corrected samples (replace UnicodeToUTF8 with EncodeUTF8)
Reply With Quote
  #2 (permalink)  
Old 09-04-2007, 01:52 PM
Knows the basics
 
Join Date: May 2007
Posts: 63
Default

THANKS!!



Reply With Quote
  #3 (permalink)  
Old 09-04-2007, 02:21 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Hi dzt

I can't get this library and your samples to work

All that seems to happen is that the HTML code is displayed in the hc control with a green background. The HTML doesn't seem to get parsed nor do any events fire. Any idesa?
Reply With Quote
  #4 (permalink)  
Old 09-04-2007, 02:43 PM
Knows the basics
 
Join Date: May 2007
Posts: 63
Default

did you test it on the desktop it will not work as DZT mentions.

"For desktop is provided a dummy interface for design help"
Reply With Quote
  #5 (permalink)  
Old 09-04-2007, 04:22 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I was in too much of a hurry to try it after seing the screenshots and didn't actually read the text of his post. Thanks for pointing it out.

However on my device only test3 runs properly.

Test2 and test5 produce
"An error occurred on sub hc_onbefornavigate.
Line number:0
Error description: FormatException"

Test4 produces
"An unexpected error has occurred in ppc4.exe

File or assembly name 'System.Drawing,Version=1.0.5000.0, Culture=neutral,PublicKeyToken=B03F5F7F11D50A3A, or one of its dependencies, was not found"

I have both CF 1.0 SP3 and 2.0 SP2 on this device and tried the tests with and without a config file. The test4 error is identical with and without a config file. This surprises me slightly as with a config file I didn't expect it load what looks like a CF 1.0 assembly! I suppose the test4 error could mean a problem with my CF 1.0 setup - although that is in the device ROM - as I use Visual Studio 2005 and CF 2.0 when playing on my device. However I haven't had a problem so far running B4PPC apps without a config file - except where needed for a 2.0 library.
Reply With Quote
  #6 (permalink)  
Old 09-04-2007, 07:54 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Ioannina, Greece
Posts: 356
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi all,

Last minute before posting the librabry and samples I changed a function name (UnicodeToUTF8 to EncodeUTF8) and didn't update the samples.



I reattached corrected samples to the first post. Please anyone who downloaded before, should replace "UnicodeToUTF8" with "EncodeUTF8".

Thank you for your understanding.
__________________
Dimitris Zacharakis
http://www.terracom.gr

Last edited by dzt : 09-04-2007 at 08:03 PM.
Reply With Quote
  #7 (permalink)  
Old 09-04-2007, 08:50 PM
Knows the basics
 
Join Date: May 2007
Posts: 63
Default

Hi,

Are you having also the planning that it will be work on desktop too?

cheers
Reply With Quote
  #8 (permalink)  
Old 09-05-2007, 06:21 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

dzt, as always thank you for your
Reply With Quote
  #9 (permalink)  
Old 09-05-2007, 09:15 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Excellent! All works fine now. Thanks dzt.
Reply With Quote
  #10 (permalink)  
Old 09-07-2007, 12:21 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello Dimitris,
Just a quick note to say THANK YOU for this fantastic addition to B4PPC!
You are opening new perspectives, Help managment, ebook, you name it
Respectful greetings,
Robert
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 11:23 AM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 09:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 07:46 PM


All times are GMT. The time now is 07:30 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0