Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List 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, 02:38 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
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, 280 views)
File Type: sbp test3.sbp (962 Bytes, 196 views)
File Type: sbp test2.sbp (1.1 KB, 178 views)
File Type: zip test4.zip (1,012 Bytes, 170 views)
File Type: zip test5.zip (1.5 KB, 171 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr

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

THANKS!!



Reply With Quote
  #3 (permalink)  
Old 09-04-2007, 03:21 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,695
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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, 03:43 PM
Knows the basics
 
Join Date: May 2007
Posts: 60
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, 05:22 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,695
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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, 08:54 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
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 09:03 PM.
Reply With Quote
  #7 (permalink)  
Old 09-04-2007, 09:50 PM
Knows the basics
 
Join Date: May 2007
Posts: 60
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, 07:21 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,141
Default

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

Excellent! All works fine now. Thanks dzt.
Reply With Quote
  #10 (permalink)  
Old 09-07-2007, 01:21 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 08:46 PM
Door library (Beta) - Special library Erel Official Updates 48 07-18-2008 03:33 PM
Merging Outlook library and Phone library Erel Official Updates 2 07-14-2008 04:38 PM


All times are GMT. The time now is 05:32 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0