Article ID: 133287
Article Last Modified on 2/15/2000
PUBLIC ofrmMyform && Create a public variable
ofrmMyform=CREATEOBJECT("frmMyform")&& Create an instance the object
ofrmMyform.SHOW && Call the show event
DEFINE CLASS frmMyform AS form
DoCreate = .T.
Caption = "Invisible Button Style"
Movable = .F. && Make the form Un-movable
Name = "Form1"
ADD OBJECT image1 AS image WITH ; && Add the picture to the form
Picture = "samples\graphics\bmps\gauge\horz1.bmp", ;
Height = 37, ;
Left = 96, ;
Top = 96, ;
Width = 183, ;
Name = "Image1"
ADD OBJECT command1 AS commandbutton WITH ;
Top = 101, ;
Left = 240, ;
Height = 24, ;
Width = 37, ;
Caption = "Command1", ;
Enabled = .T., ;
Style = 1, ;
DisabledForeColor = RGB(0,0,0), ;
Name = "Command1"
ADD OBJECT shape1 AS shape WITH ;
BackStyle = 0, ;
BorderStyle = 0, ;
Height = 32, ;
Left = 144, ;
Top = 97, ;
Width = 37, ;
Name = "Shape1"
PROCEDURE command1.Click
Wait Window "This Is The Invisible Button Click Method"
ENDPROC
PROCEDURE shape1.Click
Wait Window "This is The Shape Click Method"
ENDPROC
ENDDEFINE
WAIT WINDOW "Invisible button"
WAIT WINDOW "this is the shape"
Additional query words: VFoxWin
Keywords: KB133287