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.

Web browser for desktop and device

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2008, 05:46 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default Web browser for desktop and device

I had previously tried to wrap a .NET WebBrowser in a B4PPC library but for technical reasons to do with threading this would not work on the desktop in previous versions of B4PPC. As of version 6.05 Erel has changed the threading model of the B4PPC desktop so I can now offer this library and help file.

As stated this requires B4PPC version 6.05 or later and .NET 2.0. It will work on both device and desktop.

EDIT :- Version 1.1 replaced version 1.0. See post #14 in this thread for the changes.

EDIT : - Source 1.1 code for dll merging posted. Put it in the Basic4ppc Desktop\Libraries folder.

EDIT :- Version 1.2 posted with source. This version is AutoScale aware. See post #53
Attached Files
File Type: zip WebBrowser1.2.zip (14.4 KB, 387 views)

Last edited by agraham : 06-10-2009 at 12:27 PM.
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 06:34 PM
Junior Member
 
Join Date: Apr 2007
Location: Catalonia
Posts: 40
Default Msg Error

In my computer it appears a message of error.

PepSoft
Attached Images
File Type: jpg ErrorMsg.JPG (26.3 KB, 83 views)
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 06:35 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You should update to Basic4ppc V6.05: http://www.basic4ppc.com/forum/official-updates/1633-basic4ppc-v6-05-a.html
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 07:15 PM
Junior Member
 
Join Date: Apr 2007
Location: Catalonia
Posts: 40
Default

Thanks Erel.
Excuse me, I forgotten to install version 6.05.
Reply With Quote
  #5 (permalink)  
Old 02-29-2008, 09:14 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 768
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Andrew,
Looks really great. Thanks so much, indeed !
Just a small finding,

web.IsOffline causes a "NotSupportedException" error on the device

Code:
Sub CheckOffline
  
If hc.IsOffline Then
    
Msgbox("Device is offline."," Tenki",cMsgBoxNone,cMsgBoxAsterisk)
  
End If
  
Return hc.IsOffline
End Sub
Would it be a great effort to add methods to influence font size and
text wrapping?

Cheers
Robert
Reply With Quote
  #6 (permalink)  
Old 02-29-2008, 10:33 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by alfcen View Post
web.IsOffline causes a "NotSupportedException" error on the device
Sorry. it must be an error in Microsofts' documention! It is documented as being available on the device.

Quote:
Would it be a great effort to add methods to influence font size and text wrapping?
Not possible (on the device at least). The device WebBrowser is a very small very simplified subset of the desktop version. I've been throuugh the docs again but can't see anything else useful to implement.
Reply With Quote
  #7 (permalink)  
Old 02-29-2008, 01:31 PM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 768
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Fair enough. That does not diminish your great efforts.
No problem, I can work around it.
Regarding font size, etc., I thought it was possible because dzt's
htmlview.dll can do it(?)
Reply With Quote
  #8 (permalink)  
Old 02-29-2008, 01:52 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by alfcen View Post
Regarding font size, etc., I thought it was possible because dzt's htmlview.dll can do it(?)
I think that you must be referring to the zoom level in dzHtmlView, that is the only manipulation that I can see that it offers. He can do that because he is not using the .NET control but going in to the underlying native control at a very low level by hooking the window procedure and watching/sending window messages. Apart from the occasional native dll call I prefer to work at a rather higher level in .NET and these low-level operations are not exposed there.
Reply With Quote
  #9 (permalink)  
Old 02-29-2008, 02:08 PM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 768
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Forgive my naiveness, I have no experience in programming on levels lower than BASIC. Thanks a lot for your comprehensive explanation.
Reply With Quote
  #10 (permalink)  
Old 02-29-2008, 02:43 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by alfcen View Post
Forgive my naiveness
Nothing to forgive - keep on asking then everyone learns (including me when I have to investigate something for a reply )
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
Using rapi from desktop to copy file from device to desktop sunnyboyj Questions (Windows Mobile) 19 10-27-2010 02:08 PM
Device or Desktop DaveW Questions (Windows Mobile) 2 11-07-2008 01:04 PM
Default Browser (Desktop) bish0p Questions (Windows Mobile) 5 09-10-2008 09:31 PM
When compiling for Device, Desktop code is used Woinowski Bug Reports 6 07-03-2008 10:30 PM
Different behaviour DeskTop and Device HARRY Questions (Windows Mobile) 2 02-22-2008 01:36 PM


All times are GMT. The time now is 03:10 AM.


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