desktop ok ppc notok

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.
 

Attachments

Erel

Administrator
Staff member
Licensed User
The second coordinates of DrawString determine the lower right corner of the text boundaries.
For example instead of:
B4X:
form1.DrawString (Chr(t), 8,  10*i , j , 10*i, 264  , cGreen )
You should write:
B4X:
form1.DrawString (Chr(t), 8,  10*i , j , 500, 500 , 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:
B4X:
Sub App_Start
 ...
 TimeFormat("hh:mm:ss")
End Sub

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