BBjToolButton::setNoEdge

Description

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

Syntax

Return Value

Method

void

setNoEdge(boolean noEdge)

Parameters

Variable

Description

noEdge

Sets noEdge hint to Java look and feel

0 = Draw the edge.

1 = Do not draw the edge.

Return Value

None.

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 = 400, HEIGHT = 800, TITLE$ = "BBj Window", id = 1

win! = gui!.addWindow(X,Y,WIDTH,HEIGHT,TITLE$,$02$)
win!.addButton(101,50,50,80,30,"Border",$$)
b2! = win!.addButton(102,50,100,80,30,"No_Border")
b2!.setOpaque(0)
b2!.setNoEdge(1)
? "NO EDGE: ",b2!.getNoEdge()
win!.addButton(103,50,150,80,30,"Border>_TOOL",$$)
b3! = win!.addToolButton(104,50,200,80,30,"No_Border>_TOOL",$$)
b3!.setOpaque(0)
b3!.setNoEdge(1)
? "NO EDGE: ",b3!.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.