Hej, Friends !
I wrote this at pause in Christmas celebrating:
PUBLIC oform1
oform1=NEWOBJECT("gwiazda"
oform1.Show
RETURN
DEFINE CLASS gwiazda AS form
Top = 0
Left = 0
Height = 454
Width = 633
DoCreate = .T.
Caption = "Merry Christmas !!!"
BackColor = RGB(0,0,64)
Name = "gwiazda"
Add object gwiazda1 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 0, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda1", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object timer1 as timer with ;
Top = 324, ;
Left = 492, ;
Height = 61, ;
Width = 73, ;
Interval = 100, ;
Name = "Timer1"
PROCEDURE timer1.Timer
FOR i=1 to 25
zm_g='thisform.gwiazda'+alltrim(str(i))
zm_gl=zm_g+'.left'
IF &zm_gl<572
&zm_gl=&zm_gl+10*rand()
ELSE
&zm_gl=1
ENDIF
zm_gl=zm_g+'.top'
IF &zm_gl<392
&zm_gl=&zm_gl+10*rand()
ELSE
&zm_gl=1
ENDIF
zm_gl=zm_g+'.forecolor'
IF &zm_gl=65535
&zm_gl=12632256
ELSE
&zm_gl=65535
ENDIF
ENDFOR
ENDPROC
Add object gwiazda2 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 20, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda2", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda3 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 40, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda3", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda4 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 60, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda4", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda5 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 80, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda5", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda6 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 100, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda6", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda7 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 120, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda7", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda8 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 140, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda8", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda9 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 160, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda9", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda10 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 180, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda10", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda11 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 200, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda11", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda12 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 220, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda12", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda13 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 240, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda13", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda14 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 260, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda14", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda15 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 280, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda15", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda16 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 300, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda16", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda17 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 320, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda17", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda18 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 340, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda18", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda19 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 360, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda19", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda20 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 380, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda20", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda21 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 400, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda21", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda22 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 420, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda22", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda23 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 440, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda23", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda24 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 460, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda24", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda25 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 480, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda25", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object nap1 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontItalic = .T., ;
FontName = "Arial", ;
FontSize = 28, ;
Caption = "MERRY CHRISTMAS", ;
Height = 45, ;
Left = 132, ;
Top = 156, ;
Width = 367, ;
Name = "NAP1", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object nap2 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontItalic = .T., ;
FontName = "Arial", ;
FontSize = 28, ;
Caption = "HAPPY NEW YEAR 2003", ;
Height = 45, ;
Left = 96, ;
Top = 216, ;
Width = 436, ;
Name = "NAP2", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object TIMER2 as TIMER with ;
Top = 336, ;
Left = 528, ;
Height = 61, ;
Width = 73, ;
Interval = 100, ;
Name = "TIMER2"
PROCEDURE TIMER2.Timer
IF thisform.NAP1.forecolor=65535
thisform.NAP1.forecolor=12632256
ELSE
thisform.NAP1.forecolor=65535
ENDIF
IF thisform.NAP2.forecolor=65535
thisform.NAP2.forecolor=12632256
ELSE
thisform.NAP2.forecolor=65535
ENDIF
ENDPROC
Do you suggest some changes ?
Kind regards from Warsaw !!!!!
Monika (monikai@yahoo.com)
I wrote this at pause in Christmas celebrating:
PUBLIC oform1
oform1=NEWOBJECT("gwiazda"
oform1.Show
RETURN
DEFINE CLASS gwiazda AS form
Top = 0
Left = 0
Height = 454
Width = 633
DoCreate = .T.
Caption = "Merry Christmas !!!"
BackColor = RGB(0,0,64)
Name = "gwiazda"
Add object gwiazda1 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 0, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda1", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object timer1 as timer with ;
Top = 324, ;
Left = 492, ;
Height = 61, ;
Width = 73, ;
Interval = 100, ;
Name = "Timer1"
PROCEDURE timer1.Timer
FOR i=1 to 25
zm_g='thisform.gwiazda'+alltrim(str(i))
zm_gl=zm_g+'.left'
IF &zm_gl<572
&zm_gl=&zm_gl+10*rand()
ELSE
&zm_gl=1
ENDIF
zm_gl=zm_g+'.top'
IF &zm_gl<392
&zm_gl=&zm_gl+10*rand()
ELSE
&zm_gl=1
ENDIF
zm_gl=zm_g+'.forecolor'
IF &zm_gl=65535
&zm_gl=12632256
ELSE
&zm_gl=65535
ENDIF
ENDFOR
ENDPROC
Add object gwiazda2 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 20, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda2", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda3 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 40, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda3", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda4 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 60, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda4", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda5 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 80, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda5", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda6 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 100, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda6", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda7 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 120, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda7", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda8 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 140, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda8", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda9 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 160, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda9", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda10 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 180, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda10", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda11 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 200, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda11", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda12 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 220, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda12", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda13 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 240, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda13", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda14 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 260, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda14", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda15 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 280, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda15", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda16 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 300, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda16", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda17 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 320, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda17", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda18 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 340, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda18", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda19 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 360, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda19", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda20 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 380, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda20", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda21 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 400, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda21", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda22 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 420, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda22", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda23 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 440, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda23", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda24 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 460, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda24", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object gwiazda25 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontSize = 48, ;
Caption = "*", ;
Height = 79, ;
Left = 480, ;
Top = 0, ;
Width = 27, ;
Name = "gwiazda25", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object nap1 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontItalic = .T., ;
FontName = "Arial", ;
FontSize = 28, ;
Caption = "MERRY CHRISTMAS", ;
Height = 45, ;
Left = 132, ;
Top = 156, ;
Width = 367, ;
Name = "NAP1", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object nap2 as label with ;
AutoSize = .T., ;
FontBold = .T., ;
FontItalic = .T., ;
FontName = "Arial", ;
FontSize = 28, ;
Caption = "HAPPY NEW YEAR 2003", ;
Height = 45, ;
Left = 96, ;
Top = 216, ;
Width = 436, ;
Name = "NAP2", ;
ForeColor = RGB(192,192,192), ;
BackColor = RGB(0,0,64)
Add object TIMER2 as TIMER with ;
Top = 336, ;
Left = 528, ;
Height = 61, ;
Width = 73, ;
Interval = 100, ;
Name = "TIMER2"
PROCEDURE TIMER2.Timer
IF thisform.NAP1.forecolor=65535
thisform.NAP1.forecolor=12632256
ELSE
thisform.NAP1.forecolor=65535
ENDIF
IF thisform.NAP2.forecolor=65535
thisform.NAP2.forecolor=12632256
ELSE
thisform.NAP2.forecolor=65535
ENDIF
ENDPROC
Do you suggest some changes ?
Kind regards from Warsaw !!!!!
Monika (monikai@yahoo.com)