BBjMDI::setOutlineDrag

Description

In BBj 3.01 and higher, this method sets the drag mode of the BBjMDI to Outline.

Syntax

Return Value

Method

void

setOutlineDrag(boolean dragMode)

Parameters

Variable

Description

dragMode

Specifies whether the MDI should use Outline drag mode.

0 = Live drag mode

1 = Outline drag mode

Return Value

None.

Remarks

When possible, the MDI attempts to determine the client's drag mode preference within the operating system. By default, outline drag mode is the drag mode when the MDI cannot determine the client's preference.

Outline drag mode is also called wireframe, as it only shows a thin frame around the window as it is dragged about. Live drag mode is frequently shown as "show contents while dragging" in Windows environments.

Example

rem 'Drag mode example

OPEN (UNT)"X0"
MDI! = BBjAPI().getMDI()
mdi!.createMDIWindow(50, 50, 1000, 800, "Drag Mode Example")
mdi!.setOutlineDrag(0)
PRINT "Drag mode: ", mdi!.isOutlineDrag()
CALLBACK(ON_CLOSE,APP_CLOSE,mdi!.MDI_CONTEXT)
a = scall("bbj &")
process_events

APP_CLOSE:
    mdi!.closeAll(0)

See Also

BBjAPI

BBjMDI

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