need help on this

Discussion in 'Questions (Windows Mobile)' started by tvrman, Oct 9, 2007.

  1. tvrman

    tvrman Member Licensed User

    Hi guys,

    Im trying to convert a text file including serveral pictures (names only), to an
    format which shows in the panel, so that you have an document with text and pictures.
    The trick so far i read each row and put in a label and when i read a picture (ext
    jpg) then i convert it to an image (addimage).
    It took a long way to sort it out, you need to recalculate every row length that it will fit nice to the screen size.
    Because the large project were im working on, i use serveral panel which can show text only for the moment, because that it is not so easy to implement the conversie and put image's and text together on the screen.
    What i say is , is there an nice smart simple solution herefor?

    Below there is a piece of code which i tried, the thing on this that the aligment of the text is not correct also the image's will alow that the text is fall out below of the screen.

    i'll hope to clear up my situation.

    Thanks a lot again.



    For Counter = pos1*30 To A1.Count - 2

    rowdata = A1.item(Counter)

    waarde = Int(StrLength(rowdata)/RowWidth)+1

    For teller = 1 To waarde
    data1 = SubString(rowdata,(teller-1)*RowWidth,teller+RowWidth)
    row = row + 10

    If row = 410 Then

    'End of the page

    Else If row < 410 Then

    geen = StrIndexOf(rowdata,"gif",0)

    If geen > -1 Then

    rowdata = StrReplace(rowdata," ","")

    Form1.FDrawImage(AppPath &" \pic1.gif",10,row,200,row*2)

    row = row*2

    End If

    Form1.FDrawString(data1,7,10,row, form1.width,form1.height,255,255,255)

    End If

    Next

    Next
     
    Last edited: Oct 9, 2007
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. tvrman

    tvrman Member Licensed User

    Thanks Erel, i saw that before, the only thing is that it will not work
    on the pc.
    i'm thinking to use the internet explorer instead and on the ppc the HTMLView
    .

    Thanks
     
  4. dzt

    dzt Active Member Licensed User

    IE hosted

    Hi,

    I can't post an HTMLView for desktop because this control is a COM object and (as far as I can know) there is a threading issue with Basic4PPC.

    Here http://www.terracom.gr/basic4ppc/files/IEhosted.zip is a solution for the desktop. Includes an updated version of dzHWdesktop.dll. It is not so elegant but I hope it can help.

    PS.
    Trying to attach it I get the message "Exceeds forum quota by 7.0 KB" although it is only 9KB
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    The quota is now fixed, so please try again.
     
  6. dzt

    dzt Active Member Licensed User

    Hi Erel,

    Thanks. There is no need to attach it now as I've provided an external link.
     
  7. tvrman

    tvrman Member Licensed User


    Hi Dzt,

    This workarround works very nice.

    Thanks.
    :sign0142:
     
Loading...