desktop ok ppc notok

Discussion in 'Questions (Windows Mobile)' started by yep, Nov 10, 2007.

  1. yep

    yep New Member

    using the trial 5.8, I tried to code something like a simple "matrix afterdark alike", which works on the desktop and not on the ppc (eten x500 with WM5)
    :( My (poor) code attached below.
    Any reason why ?
    regards, thierry.

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    The second coordinates of DrawString determine the lower right corner of the text boundaries.
    For example instead of:
    form1.DrawString (Chr(t), 8,  10*i , j , 10*i, 264  , cGreen )
    You should write:
    form1.DrawString (Chr(t), 8,  10*i , j , 500500 , cGreen )
    BTW, there is no need to set Form.ForeLayer to true as you are not using it.
    Instead of using TimeH, TimeM and TimeS you can use:
    Sub App_Start
    End Sub

    Sub Timer2_Tick
    "Yep Matrix time = " & Time(Now)
    End Sub