IndexBase 0
Include "window.h"
sys x, y, a, hdc, hWnd
sys number
hWnd= Window "Hallo",640,480,ws_overlapped
hdc = GetDC hWnd
'While WinExit=0
'SetFont 16,32,0,"courier"
'For x=0 To 640 Step 20
'For y=0 To 480 Step 36
'Text "*",x,y,RGB Rand(64,255),Rand(64,255),Rand(64,255)
'Next: Next
'SetFont 18,64,700,"courier"
'Text "HAPPY LINUX",210,200,RGB 255,199,240
'DoEvents
'WaitFrames 14
'Wend
'WinEnd
SetFont 38,128,800,"times"
While WinExit=0
cls
Text "WHAT'S THAT",0,0,0xFFC8C8
Text number,210,160, 255 RGB Rand(0x40,0xFF),Rand(0x40,0xFF),Rand(0x40,0xFF)
number +=1
DoEvents
WaitTime 2
Wend
WinEnd
IndexBase 0
Include "window.h"
sys x, y, a, hdc, hWnd
sys number
hWnd= Window "Hallo",640,480,ws_overlapped
hdc = GetDC hWnd
While WinExit=0
SetFont 16,32,0,"courier"
For x=0 To 640 Step 20
For y=0 To 480 Step 36
Text "*",x,y,RGB Rand(64,255),Rand(64,255),Rand(64,255)
Next: Next
SetFont 18,64,700,"courier"
Text "HAPPY LINUX",210,200,RGB 255,199,240
DoEvents
WaitTime 10
Wend
WinEnd
Function Count() as long
Return number +=1
End Function
I will see if I can improve on this.
Function Count() as long
Return number = Number +1
End Function
IndexBase 0
Include "window.h"
sys x, y, a, hdc, hWnd
sys number
hWnd= Window "Hallo",640,480,ws_overlapped
hdc = GetDC hWnd
Function Count() as long
Return number = Number +1
End Function
While WinExit=0
cls
count
SetFont 18,64,700,"courier"
Text "RETURN, A GOOD CHOICE",110,200,RGB 255,199,240
Text number,300,250,0xFFC8C8
DoEvents
WaitTime 10
Wend
WinEnd