Article ID: 170383
Article Last Modified on 7/1/2004
PUBLIC oform1
oform1=CREATEOBJECT("form1")
oform1.Show
RETURN
**************************************************
*-- Form: form1
*-- ParentClass: form
*-- BaseClass: form
*
DEFINE CLASS form1 AS form
Top = 32
Left = 54
Height = 283
Width = 468
DoCreate = .T.
ShowTips = .T.
Caption = "ToolTip Form"
Name = "Form1"
ADD OBJECT command1 AS commandbutton WITH ;
Top = 72, ;
Left = 24, ;
Height = 27, ;
Width = 84, ;
Caption = "Command1", ;
ToolTipText = "This is Command 1", ;
Name = "Command1"
ADD OBJECT command2 AS commandbutton WITH ;
Top = 132, ;
Left = 24, ;
Height = 27, ;
Width = 84, ;
Caption = "Command2", ;
ToolTipText = "Hello", ;
Name = "Command2"
ADD OBJECT command3 AS commandbutton WITH ;
Top = 204, ;
Left = 24, ;
Height = 27, ;
Width = 84, ;
Caption = "Command3", ;
ToolTipText = "This is Command3", ;
Name = "Command3"
ADD OBJECT command4 AS commandbutton WITH ;
Top = 72, ;
Left = 216, ;
Height = 27, ;
Width = 84, ;
Caption = "Command4", ;
ToolTipText = "Goodbye", ;
Name = "Command4"
ADD OBJECT command5 AS commandbutton WITH ;
Top = 132, ;
Left = 216, ;
Height = 27, ;
Width = 84, ;
Caption = "Command5", ;
ToolTipText = "This is Command 5", ;
Name = "Command5"
PROCEDURE blackbuts
Thisform.SetAll("ForeColor",RGB(0,0,0),"CommandButton")
ENDPROC
PROCEDURE command1.MouseMove
LPARAMETERS nButton, nShift, nXCoord, nYCoord
*NODEFAULT
Thisform.BlackButs()
This.ForeColor=RGB(255,0,0)
This.SetFocus()
Thisform.Refresh()
ENDPROC
PROCEDURE command2.MouseMove
LPARAMETERS nButton, nShift, nXCoord, nYCoord
*NODEFAULT
Thisform.BlackButs()
This.ForeColor=RGB(255,0,0)
This.SetFocus()
ENDPROC
PROCEDURE command3.MouseMove
LPARAMETERS nButton, nShift, nXCoord, nYCoord
NODEFAULT
Thisform.BlackButs()
This.ForeColor=RGB(255,0,0)
This.SetFocus()
ENDPROC
PROCEDURE command4.MouseMove
LPARAMETERS nButton, nShift, nXCoord, nYCoord
NODEFAULT
Thisform.BlackButs()
This.ForeColor=RGB(255,0,0)
This.SetFocus()
Thisform.Refresh()
ENDPROC
PROCEDURE command5.MouseMove
LPARAMETERS nButton, nShift, nXCoord, nYCoord
NODEFAULT
Thisform.BlackButs()
This.ForeColor=RGB(255,0,0)
This.SetFocus()
Thisform.Refresh()
ENDPROC
ENDDEFINE
*
*-- EndDefine: form1
**************************************************
Keywords: kbhowto kbcode KB170383