General information
Category:
Forms & Form designer
Title:
Closing the TopLevel form from toolbar button
How can I close the TopLevel form from the button on toolbar (In TopLevelForm)?
Mycode
*Form.Activate*
IF !THIS.IsLoadedTool
THIS.oToolbar = CREATEOBJECT('myToolbar')
THIS.oToolbar.VISIBLE = .t.
THIS.IsLoadedTool = .t.
ENDIF
*Toolbar.cmdClose*
IF TYPE('myForm')="O" AND !ISNULL(myForm)
myForm.oToolbar = .NULL.
myForm.RELEASE()
ENDIF
Toolbar is hide, but form is not released.
Thanks.
Denis
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only