BBjControl::destroy

Description

This method destroys a control. It removes the BBjControl from the window and allows its ID to be used again.

Syntax

ReturnValue

Method

void

destroy()

Parameters

None.

Return Value

None.

Remarks

None.

Example

sysgui = unt
open(sysgui)"X0"
sg! = BBJAPI().getSysGui()
win! = sg!.addWindow(100,100,300,300,"",$02$)
button! = win!.addButton(100,100,100,100,25,"destroy me")
CALLBACK(ON_BUTTON_PUSH,DESTROY_BUTTON,0,100)
CALLBACK(ON_CLOSE,CLOSE,0)
process_events

DESTROY_BUTTON:
    button!.destroy()
return

CLOSE:
release
return

See Also

BBjAPI

Object Variables

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.