BBjControl::getControlType

Description

In BBj 3.01 and higher, this method returns the control type of the BBjControl.

Syntax

Return Value

Method

int

getControlType()

Parameters

None.

Return Value

For return values, see CTRL() Function 4.

Remarks

For a listing of control type constants, see Constants in BBjControl.

Example

open(unt)"X0"
sg! = BBjAPI().getSysGui()
window! = sg!.addWindow(100,10,10,200,200,"test")
button! = window!.addButton(101,20,20,30,30,"button")
windowType! = window!.getControlType()
buttonType! = button!.getControlType()
if buttonType! = sg!.BUTTON_TYPE
    print "button! is a buttton"
else
    print "button! is not a button"
endif
if windowType! = sg!.BUTTON_TYPE
    print "window! is a buttton"
else
    print "window! is not a button"
endif
end

See Also

BBjAPI

BBjSysGui Methods

BBjControl Methods

BBjPopupMenu

BBjMenu

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