BBjToolButton::getNoEdge

Description

In BBj 6.0 and higher, this method gets the hint to the Java look and feel indicating whether to draw the border on the BBjToolButton.

Syntax

Return Value

Method

boolean

getNoEdge()

Parameters

None.

Return Value

Returns the noEdge hint to the Java look and feel (0 = draw the edge, 1 = do not draw the edge).

Remarks

The Java look and feel used by the BBj session determines the visual result of this hint. Some look and feels, such as XP, appear to do nothing with this hint.

Example

myAPI! = BBjAPI()
SYSGUI = UNT
OPEN (SYSGUI) "X0"
gui! = myAPI!.getSysGui()

X = 10, Y = 10, WIDTH = 220, HEIGHT = 200, TITLE$ = "BBj Window"

win! = gui!.addWindow(X,Y,WIDTH,HEIGHT,TITLE$,$02$)
b1! = win!.addButton(101,10,10,200,30,"Border Button",$$)
b2! = win!.addButton(102,10,50,200,30,"No Border Button")
b2!.setOpaque(0)
b2!.setNoEdge(1)
? "NO EDGE: ",b2!.getNoEdge()
b3! = win!.addButton(103,10,90,200,30,"Border ToolButton",$$)
b4! = win!.addToolButton(104,10,130,200,30,"No Border ToolButton",$$)
b4!.setOpaque(0)
b4!.setNoEdge(1)
? "NO EDGE: ",b4!.getNoEdge()

rem 'Register the CALLBACK routines
CALLBACK(ON_CLOSE,APP_CLOSE,gui!.getContext())

rem 'Process Events
process_events

rem 'Callback routine called when the user closes the application window
APP_CLOSE:
release

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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