BBjControl::getRaisedEdge

Description

Returns whether the BBjControl has a raised border.

Syntax

Return Value

Method

boolean

getRaisedEdge()

Parameters

None.

Return Value

Returns whether the BBjControl has a raised border (0 = No raised border, 1 = Raised border).

Remarks

BBj honors this flag when running with the -LFvpro5 command line option as documented in Running BBj from the Command Line. In every other look and feel, this flag is a NOOP. By default, a BBjControl does not have a raised border.

Example

REM Determine if a control has a raised edge border

REM Obtain the instance of the BBjAPI object
LET myAPI!=BBjAPI()

REM Open the SysGui device
SYSGUI=UNT
OPEN (SYSGUI) "X0"

REM Obtain the instance of the BBjSysGui object
LET mySysGui!=myAPI!.getSysGui()

REM Set common addWindow param values
X=10
Y=10
WIDTH=200
HEIGHT=200

REM Create a window with a title in the current context
TITLE$="BBj Window"
REM Set the current context
mySysGui!.setContext(0)
myWindow! = mySysGui!.addWindow(X,Y,WIDTH,HEIGHT,TITLE$)

REM Add a button on the window
myButton! = myWindow!.addButton(101,50,100,90,30,"Button")

REM Constants
TRUE=1

REM Set the border of the button to a raised edge border
myButton!.setRaisedEdge(TRUE)

REM Determine if the button has a raised edge border, this will return 1
RAISED_EDGE = myButton!.getRaisedEdge()

REM Register the CALLBACK routines
CALLBACK(ON_CLOSE,APP_CLOSE,mySysGui!.getContext())

REM Process Events
PROCESS_EVENTS

REM Callback routine called when the user closes the application window
APP_CLOSE:
RELEASE
RETURN

See Also

BBjAPI

BBjSysGui

BBjWindow

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