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.


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: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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.
Attached Files
File Type: zip WebBrowser1.1.zip (11.9 KB, 203 views)
File Type: zip WebBrowserSource1.1.zip (1.9 KB, 92 views)

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

In my computer it appears a message of error.

PepSoft
Attached Images
File Type: jpg ErrorMsg.JPG (26.3 KB, 40 views)
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 06:35 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

You should update to Basic4ppc V6.05: Basic4ppc V6.05
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 07:15 PM
Junior Member
 
Join Date: Apr 2007
Location: Catalonia
Posts: 12
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 Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
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: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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 Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
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: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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 Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
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: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Device or Desktop DaveW Questions & Help Needed 2 11-07-2008 01:04 PM
Default Browser (Desktop) bish0p Questions & Help Needed 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 & Help Needed 2 02-22-2008 01:36 PM
Using rapi from desktop to copy file from device to desktop sunnyboyj Questions & Help Needed 9 02-08-2008 12:40 PM


All times are GMT. The time now is 08:22 PM.


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