Display a long HTML string

N1c0_ds

Active Member
Licensed User
In Gecko, when the user selects an application in the list, a form is shown with all the necessary information about the application (Name, version, last updated, screenshot and finally: the description).

I would like to have the form display an HTML string that is stored in a table cell and displayed with all the basic formatting (bold, italic, color and URLs is all I need), like an advanced textbox, but not editable.

For example:

Hello! <B>This is a test </B> <BLUE>And I don't remember HTML well</BLUE>

would display

Hello! This is a test And I don't remember HTML well


Is this feasible?
 

Cableguy

Expert
Licensed User
Longtime User
Yes it is, using the WebBrowser dll, and setting the DocumentText propertie...
But I think your html syntax may be a bit off, nothing a good "try and error" wouldn't fix...
 

Mr_Gee

Active Member
Licensed User
Longtime User
CableGuy is right
Hello! <B>This is a test </B> <BLUE>And I don't remember HTML well</BLUE>
should be officially
B4X:
<html>
<head>
<body>
@
Hello! <b>This is a test </b><p style="color:#0000CC">And I don't remember HTML well</p>
@
</body>
</head>
</html>
this will print below each other
if you need it in-line use
B4X:
Hello! <b>This is a test </b><span  style="color:#0000CC">And I don't remember HTML well
</span>
the stuff between the @ needs to be dynamic (since that can change), the rest can be a hardcoded template
 

N1c0_ds

Active Member
Licensed User
I like it but the scrollbar is way too small for a touch-friendly application. Do you have a better way to do this?

I tried moving the object up an down at the Scrollbar.selectionchanged event but it might bring problems when the user uses another way to scroll. Got an alternative?
 

Cableguy

Expert
Licensed User
Longtime User
Try to use the door dl to hide the scroll bars..
use a larger than the screen heigth webbrowser, and move it up and down upon some control click...
It's the best I can think of at the moment...
 

N1c0_ds

Active Member
Licensed User
What about this library that sends messages to controls? It could tell a message box to scroll the control down and send the scrollbar a new value when the WebBrowser object is scrolled in another way (like TouchFlo or text selection).
 
Last edited:

N1c0_ds

Active Member
Licensed User
Is there a way to stop the contextmenu from showing up? I don't want users to be able to access their favorites and go to other websites from my application.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…