BBjChildWindow

Description

The BBjChildWindow is a child window that must be created within a BBjWindow. The window that the child window is created in will be the child's parent window. BBjChildWindow extends from BBjWindow and implements methods within BBjWindow and BBjControl.

See Child Windows for an introduction to child windows.

Implemented Interfaces

MouseWheelEnabled

TabTraversable (BBj 15.0 and higher)

Creation

BBjAPI > BBjSysGui > BBjWindow > BBjChildWindow

A BBjChildWindow object is created through the following BBjWindow methods:

Return Value

Method

BBjChildWindow

addChildWindow(int ID, number x, number y, number w, number h, int context)

BBjChildWindow

addChildWindow(int ID, number x, number y, number w, number h, string title, int context)

BBjChildWindow

addChildWindow(int ID, number x, number y, number w, number h, string title, string flags, int context)

BBjChildWindow

addChildWindow(int ID, number x, number y, number w, number h, string title, string flags, int context, string eventMask)

BBjChildWindow

addChildWindow(int ID, int context)

BBjChildWindow

addChildWindow(int ID, string title, int context)

BBjChildWindow

addChildWindow(int ID, string title, String flags, int context)

BBjChildWindow

addChildWindow(int ID, string title, String flags, int context, string eventMask)

BBjChildWindow

addChildWindow(int context)

BBjChildWindow

addChildWindow(string title, int context)

BBjChildWindow

addChildWindow(string title, String flags, int context)

BBjChildWindow

addChildWindow(string title, String flags, int context, string eventMask)

Methods of BBjChildWindow

Return Value

Method

BBjColor

getBorderColor()

int

getDockLocation()

BBjWindow

getParentWindow()

void

setBorderColor(BBjColor color!)

void

setDockLocation(int dock)

Methods of BBjChildWindow implemented for MouseWheelEnabled

Return Value Method
int getScrollWheelBehavior()
void setScrollWheelBehavior(int trav)

Methods of BBjChildWindow implemented for TabTraversable

Return Value Method
boolean isTabTraversable()
void setTabTraversable(boolean trav)

Methods of BBjChildWindow inherited from BBjWindow

Methods of BBjChildWindow inherited from BBjControl

Events

Callback Code

Object-oriented Event

Read Record Event

Code

ON_DOUBLE_CLICK

BBjDoubleClickEvent

Mouse Double-Click

2

ON_KEYPRESS

BBjKeypressEvent

Keypress

t

ON_MOUSE_DOWN

BBjMouseDownEvent

Mouse Button Down

d

ON_MOUSE_ENTER

BBjMouseEnterEvent

Mouse Enter/Exit Event

E

ON_MOUSE_EXIT

BBjMouseExitEvent

Mouse Enter/Exit Event

E

ON_MOUSE_MOVE

BBjMouseMoveEvent

Mouse Move

m

ON_MOUSE_SCROLL

BBjScrollWheelEvent

Mouse Scroll Wheel

w

ON_MOUSE_UP

BBjMouseUpEvent

Mouse Button Up

u

ON_RESIZE (BBj 22 and higher)

BBjResizeEvent Window Resize S

ON_RIGHT_MOUSE_DOWN

BBjRightMouseDownEvent

Right Mouse Button Down Event

R

ON_POPUP_REQUEST

BBjPopupRequestEvent

Popup Request Event

r

ON_WINDOW_GAINED_FOCUS

BBjWindowGainedFocusEvent

Window Focus Gained/Lost Event

F

ON_WINDOW_LOST_FOCUS

BBjWindowLostFocusEvent

Window Focus Gained/Lost Event

F

ON_WINDOW_SCROLL

BBjWindowScrollEvent

Scrollbar Move Event

p

BUI logoCSS

The visual appearance of BUI controls is defined using CSS (cascading style sheets) rules. Easily change the default colors, border, and other settings by customizing these rules, all without changing any application code. See CSS API for a high-level overview of BUI CSS.

The BBjChildWindow defines the following style names:

.BBjChildWindow

.BBjChildWindow-border

BBjChildWindows have a default 1px black border, which can be omitted when the control is created. That border color can be changed with the following CSS:

.BBjChildWindow-border

{

  background-color: gray;  

}

Remarks

None.

Constants

None.

Example

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,175,125,"BBjChildWindow",$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
child_border! = window!.addChildWindow(101,25,25,50,50,"",$$,1,$$)
child_border!.setBorderColor(sysgui!.makeColor(0,0,255))
child_noborder! = window!.addChildWindow(102,100,25,50,50,"",$00000800$,2,$$)
child_noborder!.setBackColor(sysgui!.makeColor(255,255,0))

process_events

eoj:
release

See Also

BBjAPI

BBjSysGui

MouseWheelEnabled

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