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
  #41 (permalink)  
Old 02-04-2008, 09:56 AM
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

You should use the library attached in post #36 (page 4)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #42 (permalink)  
Old 02-04-2008, 10:57 AM
Knows the basics
 
Join Date: Jan 2008
Posts: 53
Default

Hi

i did it before, the same problem but only with the device version
Reply With Quote
  #43 (permalink)  
Old 02-04-2008, 11:36 AM
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

I've made a test again and it compiles fine. Please unzip dzHTMLView_02.zip from post #36 in an empty folder. Copy only your .sbp file in this folder also and try to compile it again.

If you continue to have errors please zip and upload the whole contents from the folder.
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #44 (permalink)  
Old 02-04-2008, 05:48 PM
Knows the basics
 
Join Date: Dec 2007
Posts: 69
Awards Showcase
Beta Tester 
Total Awards: 1
Default Problems with <font size>

Hello dzt,
do you have an explanation for the following HTML appereance in dzHTMLViewLib:
I generate a HTML File with SQL-Datas, save it and navigate to it with the hc-object :

Sub DoHtmlForm
hc.EnableContextMenu = false
hc.Clear
HtStr = "<!DOCTYPE html PUBLIC " & Chr(34) & "-//W3C//DTD HTML 4.01 Transitional//EN" & Chr(34) & ">" & crlf & crlf & "<html>" & crlf & "<head>" & crlf & "<title>" & AktTab & "</title>" & crlf & "<meta content=" & Chr(34) & "Evrsoft First Page" & Chr(34) & " name=" & Chr(34) & "GENERATOR" & Chr(34) & ">" & crlf & "</head>" & crlf & crlf & "<body>" & crlf
HtmStr = HtStr
For i = 0 To FGrid.ColCount-1
HtStr = "<font size=" & Chr(34) & "2" & Chr(34) & ">" & FGrid.ColName(i) & " | " & FGrid.Cell(FGrid.ColName(i),0) & "</font>" & "<br>"
HtmStr = HtmStr & crlf & HtStr
Next
HtStr = "</body>" & crlf & "</html>"
HtmStr = HtmStr & crlf & HtStr
If FileExist ("TempHtm.htm") = True Then
FileOpen(c1, "TempHtm.htm", cWrite, ,)
FileWrite(c1, HtmStr)
FileClose(c1)
End If
hc.Navigate("file://" & AppPath & "\" & "TempHtm.htm")
End Sub

The result is shown in the "View_SQL_Application.jpg".

If I load the same file with the Browser the result is shown in the "View_IExplorer.jpg"
I use a Mobile 5 Device with VGA capability. Should it be, that VGA is the reason for ignoring the <font Size> Tag? Or is there another reason?

Best regards

berndgoedecke
Attached Images
File Type: jpg View_SQL_Application.jpg (30.9 KB, 26 views)
File Type: jpg View_IExplorer.jpg (28.4 KB, 27 views)
Reply With Quote
  #45 (permalink)  
Old 02-04-2008, 09:36 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

Hello berndgoedecke,

Please take a look at test4.zip (post #1). Acts the same in PIE and dzHTMLView.

You can also use the ZoomLevel property (0-4)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #46 (permalink)  
Old 02-05-2008, 06:46 PM
Knows the basics
 
Join Date: Dec 2007
Posts: 69
Awards Showcase
Beta Tester 
Total Awards: 1
Default test4 in vga

Hello dzt,
I've tested the test4 with a 640*400 pixel Form on the device.
I take a small change in the code:
hc.New1("Form1", 0, 0, Form1.Width, Form1.Height-20)
The Letters are much larger in the Device IDE, because the FormSize is reduced by the IDE like in QVGA.
In the compiled Version it is ok.
You'll find the screen shots attached, but I think it's better to ask Erel for a VGA compatible Device IDE.

Best regards

berndgoedecke
Attached Images
File Type: jpg test4_VGA.jpg (19.7 KB, 12 views)
File Type: jpg test4_VGA-compiled.jpg (16.0 KB, 15 views)
Reply With Quote
  #47 (permalink)  
Old 02-07-2008, 06:32 AM
Knows the basics
 
Join Date: Jan 2008
Posts: 53
Default

Hi

now it works - thanks. I don't ask why, it's windows
Reply With Quote
  #48 (permalink)  
Old 05-26-2008, 04:20 PM
Junior Member
 
Join Date: Feb 2008
Posts: 48
Default

Hello, dear dzt! Excuse for my bad English. Recpect to you for libraries, they are beautiful.but I have a question concerning htmlveiwer.How in it programming to cause object (the button, the reference)? Really it is impossible? I thank in advance for the answer!
Reply With Quote
  #49 (permalink)  
Old 05-27-2008, 11:53 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

Hello SeregaKr,

Thank you for your kind words.
Unfortunately I don't understand your problem. Please try again.
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #50 (permalink)  
Old 09-01-2008, 12:02 AM
Junior Member
 
Join Date: Mar 2008
Posts: 19
Default

Hi dzt,

Thanks for your hard work on this LIbrary. I found it on Thursday and have added it to my app.



One question is there a way to have the focus assigned to the htmlviewer in the app. This way the scroll wheel etc built into peoples hardware would allow them to scroll without have to click in the window?

Thanks in Advance
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 10:22 PM.


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