Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Display a long HTML string

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-06-2008, 01:48 AM
Senior Member
 
Join Date: Sep 2008
Posts: 161
Default Display a long HTML string

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?
Reply With Quote
  #2 (permalink)  
Old 11-06-2008, 07:07 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

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...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #3 (permalink)  
Old 11-06-2008, 09:53 AM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

CableGuy is right
Hello! <B>This is a test </B> <BLUE>And I don't remember HTML well</BLUE>
should be officially
Code:
<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
Code:
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
Reply With Quote
  #4 (permalink)  
Old 11-07-2008, 05:43 PM
Senior Member
 
Join Date: Sep 2008
Posts: 161
Default

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?
Reply With Quote
  #5 (permalink)  
Old 11-07-2008, 08:48 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

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...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #6 (permalink)  
Old 11-08-2008, 01:56 PM
Senior Member
 
Join Date: Sep 2008
Posts: 161
Default

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 by N1c0_ds : 11-08-2008 at 02:01 PM.
Reply With Quote
  #7 (permalink)  
Old 11-08-2008, 04:34 PM
Senior Member
 
Join Date: Sep 2008
Posts: 161
Default

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.
Reply With Quote
  #8 (permalink)  
Old 11-08-2008, 08:02 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

You have already posted this question in another forum (and I have replied to it there).
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
ContextMenu and center button long press N1c0_ds Questions (Windows Mobile) 1 11-03-2008 03:56 AM
any PHP/HTML experts here? Cableguy Questions (Windows Mobile) 3 10-03-2008 03:20 PM
Long String Georg Questions (Windows Mobile) 2 08-06-2008 08:20 AM
HTML in mailbodym timsteeman Questions (Windows Mobile) 4 06-02-2008 09:27 PM
Quick question to avoid going down a long dead end route LineCutter Questions (Windows Mobile) 2 05-22-2007 07:29 AM


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


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