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:
    Code:
    form1.DrawString (Chr(t), 8,  10*i , j , 10*i, 264  , cGreen )
    You should write:
    Code:
    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:
    Code:
    Sub App_Start
     ...
     TimeFormat(
    "hh:mm:ss")
    End Sub

    Sub Timer2_Tick
      label1.Text=
    "Yep Matrix time = " & Time(Now)
    End Sub
     
Loading...