HTMLView Library

dzt

Active Member
Licensed User
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.
 

berndgoedecke

Active Member
Licensed User
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
 

Attachments

dzt

Active Member
Licensed User
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)
 

berndgoedecke

Active Member
Licensed User
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
 

Attachments

Sergey Kravchenko

Active Member
Licensed User
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!
 

bish0p

Member
Licensed User
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
 

PiepsoDJ

Member
Licensed User
Which events does this lib support?

As far as i can see it only supports:
- htmlView_OnHotSPot

I really hope there is some kind of htmlView_DocumentCompleted event.
Could somebody help me? :sign0104:

Happy Holidays!
 
Top