Display a long HTML string

Discussion in 'Questions (Windows Mobile)' started by N1c0_ds, Nov 6, 2008.

  1. N1c0_ds

    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?
  2. Cableguy

    Cableguy Expert Licensed 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...
  3. Mr_Gee

    Mr_Gee Active Member Licensed User

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

    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?
  5. Cableguy

    Cableguy Expert Licensed 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...
  6. N1c0_ds

    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: Nov 8, 2008
  7. N1c0_ds

    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.
  8. agraham

    agraham Expert Licensed User

    You have already posted this question in another forum (and I have replied to it there).
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice