BBjControl::getClientEdge

Description

Returns whether the client (lowered) border is set for the BBjControl.

Syntax

Return Value

Method

boolean

getClientEdge()

Parameters

None.

Return Value

Returns whether the client border is set (0 = No client border, 1 = Client 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, the BBjControl does not have a client border.

Example

REM Determine if a control has a client 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 client edge border
myButton!.setClientEdge(TRUE)

REM Determine if the button has a client edge border, this will return 1
CLIENT_EDGE = myButton!.getClientEdge()

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.