BBjWindow


Creation Path


BBjAPI

|

+--BBjSysGui

|

+--BBjWindow

 

Description

A BBjWindow is an object that provides an interface to a GUI window. Graphical controls and child windows can be added to a BBjWindow.   

Extended Interfaces

DropTarget

Creation

BBjWindow objects are created by creating either a BBjTopLevelWindow or a BBjChildWindow.

Methods of BBjWindow

Return Value

Method

BBjBarChart

addBarChart(int controlID, int left, int top, int width, int height, string xLabel, string yLabel, int seriesCount, int categoryCount, boolean showLegend, boolean is3D, boolean isHorizontal)

BBjBarChart

addBarChart(int controlID, int left, int top, int width, int height, string xLabel, string yLabel, int seriesCount, int categoryCount, boolean showLegend, boolean is3D, boolean isHorizontal, string flags)

BBjButton

addButton(int ID, int x, int y, int width, int height, string title)

BBjButton

addButton(int ID, int x, int y, int width, int height, string title, string flags)

BBjCEdit

addCEdit(int ID, int x, int y, int width, int height, string title)

BBjCEdit

addCEdit(int ID, int x, int y, int width, int height, string title, string flags)

BBjCheckBox

addCheckBox(int ID, int x, int y, int width, int height, string title)

BBjCheckBox

addCheckBox(int ID, int x, int y, int width, int height, string title, string flags)

BBjChildWindow

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

BBjChildWindow

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

BBjChildWindow

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

BBjChildWindow

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

BBjColorChooser

addColorChooser(int ID, int x, int y, int width, int height)

BBjColorChooser

addColorChooser(int ID, int x, int y, int width, int height, BBjColor selected!)

BBjColorChooser

addColorChooser(int ID, int x, int y, int width, int height, BBjColor selected!, string flags)

BBjDataAwareGrid

addDataAwareGrid(int ID, int x, int y, int width, int height, int channel, string template)

BBjDataAwareGrid

addDataAwareGrid(int ID, int x, int y, int width, int height, string flags, int channel, string template)

BBjDataAwareGrid

addDataAwareGrid(int ID, int rowID, int colID, int x, int y, int width, int height, int channel, string template)

BBjDataAwareGrid

addDataAwareGrid(int ID, int rowID, int colID, int x, int y, int width, int height, string flags, int channel, string template)

BBjDataBoundGrid

addDataBoundGrid(int ID, int x, int y, int width, int height)

BBjDataBoundGrid

addDataBoundGrid(int ID, int x, int y, int width, int height, string flags)

BBjEditBox

addEditBox(int ID, int x, int y, int width, int height, string title)

BBjEditBox

addEditBox(int ID, int x, int y, int width, int height, string title, string flags)

BBjEditBox

addEditBox(int ID, int x, int y, int width, int height, string title, string flags, string type)

BBjEditBoxSpinner

addEditBoxSpinner(int ID, int x, int y, int width, int height, string text$)

BBjEditBoxSpinner

addEditBoxSpinner(int ID, int x, int y, int width, int height, string text$, string flags$)

BBjEditBoxSpinner

addEditBoxSpinner(int ID, int x, int y, int width, int height, BBjVector list!)

BBjEditBoxSpinner

addEditBoxSpinner(int ID, int x, int y, int width, int height, BBjVector list!, string flags$)

BBjEditBoxSpinner

addEditBoxSpinner(int ID, int x, int y, int width, int height, BBjVector list!, string text$)

BBjFileChooser

addFileChooser(int ID, int x, int y, int width, int height, string directory)

BBjFileChooser

addFileChooser(int ID, int x, int y, int width, int height, string directory, string flags)

BBjFontChooser

addFontChooser(int ID, int x, int y, int width, int height)

BBjFontChooser

addFontChooser(int ID, int x, int y, int width, int height, BBjFont font!)

BBjFontChooser

addFontChooser(int ID, int x, int y, int width, int height, BBjFont font!, string flags)

BBjGenericChart

addGenericChart(int controlID, int left, int top, int width, int height)

BBjGenericChart

addGenericChart(int controlID, int left, int top, int width, int height, string flags)

BBjGrid

addGrid(int ID, int x, int y, int width, int height)

BBjGrid

addGrid(int ID, int x, int y, int width, int height, string flags)

BBjGrid

addGrid(int ID, int x, int y, int width, int height, string flags, int rows, int columns)

BBjGrid

addGrid(int ID, int rowID, int colID, int x, int y, int width, int height)

BBjGrid

addGrid(int ID, int rowID, int colID, int x, int y, int width, int height, string flags)

BBjGrid

addGrid(int ID, int rowID, int colID, int x, int y, int width, int height, string flags, int rows, int columns)

BBjGroupBox

addGroupBox(int ID, int x, int y, int width, int height, string title)

BBjGroupBox

addGroupBox(int ID, int x, int y, int width, int height, string title, string flags)

BBjScrollBar

addHorizontalScrollBar int ID, int x,int y, int width, int height, string flags)

BBjScrollBar

addHorizontalScrollBar(int ID, int x,int y, int width, int height)

BBjSlider

addHorizontalSlider(int ID, int x,int y, int width, int height)

BBjSlider

addHorizontalSlider(int ID, int x,int y, int width, int height, string flags)

BBjHtmlEdit

addHtmlEdit(int ID, int x, int y, int width, int height, string html)

BBjHtmlEdit

addHtmlEdit(int ID, int x, int y, int width, int height, string html, string flags)

BBjHtmlView

addHtmlView(int ID, int x, int y, int width, int height, string html)

BBjHtmlView

addHtmlView(int ID, int x, int y, int width, int height, string html, string flags)

BBjImageCtrl

addImage(int ID, int x, int y, int width, int height, string filename) – deprecated, use addImageCtrl

BBjImageCtrl

addImageCtrl(int ID, int x, int y, int width, int height, BBjImage image)

BBjImageCtrl

addImageCtrl(int ID, int x, int y, int width, int height, string filename)

BBjInputD

addInputD(int ID, int x, int y, int w, int h)

BBjInputD

addInputD(int ID, int x, int y, int w, int h, string flags)

BBjInputD

addInputD(int ID, int x, int y, int w, int h, string flags, string mask)

BBjInputD

addInputD(int ID, int x, int y, int w, int h, string flags, string mask, string rules)

BBjInputD

addInputD(int ID, int x, int y, int w, int h, string flags, string mask, string rules, int restore)

BBjInputD

addInputD(int ID, int x, int y, int w, int h, string flags, string mask, string rules, int restore, int value)

BBjInputDSpinner

addInputDSpinner(int ID, int x, int y, int w, int h)

BBjInputDSpinner

addInputDSpinner(int ID, int x, int y, int w, int h, int min, int max)

BBjInputDSpinner

addInputDSpinner(int ID, int x, int y, int w, int h, string flags$)

BBjInputDSpinner

addInputDSpinner(int ID, int x, int y, int w, int h, string flags$, int min, int max)

BBjInputDSpinner

addInputDSpinner(int ID, int x, int y, int w, int h, string flags$, string mask$)

BBjInputDSpinner

addInputDSpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, int min, int max)

BBjInputDSpinner

addInputDSpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, string rules$)

BBjInputDSpinner

addInputDSpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, string rules$, int restore, int value)

BBjInputDSpinner

addInputDSpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, string rules$, int restore, int value, int min, int max)

BBjInputE

addInputE(int ID, int x, int y, int w, int h)

BBjInputE

addInputE(int ID, int x, int y, int w, int h, string flags)

BBjInputE

addInputE(int ID, int x, int y, int w, int h, string flags, int len)

BBjInputE

addInputE(int ID, int x, int y, int w, int h, string flags, int len, string pad)

BBjInputE

addInputE(int ID, int x, int y, int w, int h, string flags, int len, string pad, string val)

BBjInputE

addInputE(int ID, int x, int y, int w, int h, string flags, int len, string pad, int initPos, string restore, string val)

BBjInputE

addInputE(int ID, int x, int y, int w, int h, string flags, string mask)

BBjInputE

addInputE(int ID, int x, int y, int w, int h, string flags, string mask, string pad)

BBjInputE

addInputE(int ID, int x, int y, int w, int h, string flags, string mask, string pad,string val)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, BBjVector list!)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, BBjVector list!)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, int len)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, int len, BBjVector list!)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, int len, string pad$)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, int len, string pad$, BBjVector list!)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, int len, string pad$, string val$)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, int len, string pad$, string val$, BBjVector list!)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, int len, string pad$, int initPos, string restore$, string val$)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, int len, string pad$, int initPos, string restore$, string val$, BBjVector list!)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, string mask$)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, BBjVector list!)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, string pad$)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, string pad$, BBjVector list!)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, string pad$, string val$)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, string pad$, string val$, BBjVector list!)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, string pad$, int initPos, string restore$, string val$)

BBjInputESpinner

addInputESpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, string pad$, int initPos, string restore$, string val$, BBjVector list!)

BBjInputN

addInputN(int ID, int x, int y, int w, int h)

BBjInputN

addInputN(int ID, int x, int y, int w, int h, string flags)

BBjInputN

addInputN(int ID, int x, int y, int w, int h, string flags, string mask)

BBjInputN

addInputN(int ID, int x, int y, int w, int h, string flags, string mask, string rules)

BBjInputN

addInputN(int ID, int x, int y, int w, int h, string flags, string mask, string rules, int restore, int value)

BBjInputNSpinner

addInputNSpinner(int ID, int x, int y, int w, int h)

BBjInputNSpinner

addInputNSpinner(int ID, int x, int y, int w, int h, int min, int max)

BBjInputNSpinner

addInputNSpinner(int ID, int x, int y, int w, int h, string flags$)

BBjInputNSpinner

addInputNSpinner(int ID, int x, int y, int w, int h, string flags$, int min, int max)

BBjInputNSpinner

addInputNSpinner(int ID, int x, int y, int w, int h, string flags$, string mask$)

BBjInputNSpinner

addInputNSpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, int min, int max)

BBjInputNSpinner

addInputNSpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, string rules$)

BBjInputNSpinner

addInputNSpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, string rules$, int restore, int value)

BBjInputNSpinner

addInputNSpinner(int ID, int x, int y, int w, int h, string flags$, string mask$, string rules$, int restore, int value, int min, int max)

BBjLineChart

addLineChart(int controlID, int left, int top, int width, int height, string xLabel, string yLabel, int numSeries, boolean showLegend)

BBjLineChart

addLineChart(int controlID, int left, int top, int width, int height, string xLabel, string yLabel, int numSeries, boolean showLegend, string flags)

BBjListBox

addListBox(int ID, int x, int y, int width, int height, string initialContents)

BBjListBox

addListBox(int ID, int x, int y, int width, int height, string initialContents, string flags)

BBjListButton

addListButton(int ID, int x, int y, int width, int height, string initialContents)

BBjListButton

addListButton(int ID, int x, int y, int width, int height, string initialContents, string flags)

BBjListEdit

addListEdit(int ID, int x, int y, int width, int height, string initialContents)

BBjListEdit

addListEdit(int ID, int x, int y, int width, int height, string initialContents, string flags)

BBjMenuButton

addMenuButton(int ID, int x, int y, int width, int height, string title)

BBjMenuButton

addMenuButton(int ID, int x, int y, int width, int height, string title), string flags)

BBjNavigator

addNavigator(int ID, int x, int y, int width, int height, string title)

BBjNavigator

addNavigator(int ID, int x, int y, int width, int height, string title, string flags)

BBjPieChart

addPieChart(int controlID, int left, int top, int width, int height, boolean showLegend, boolean is3D)

BBjPieChart

addPieChart(int controlID, int left, int top, int width, int height, boolean showLegend, boolean is3D, string flags)

BBjProgressBar

addProgressBar(int ID, int x, int y, int width, int height)

BBjProgressBar

addProgressBar(int ID, int x, int y, int width, int height, int minimum, int maximum)

BBjProgressBar

addProgressBar(int ID, int x, int y, int width, int height, int orientation)

BBjProgressBar

addProgressBar(int ID, int x, int y, int width, int height, int orientation, int minimum, int maximum)

BBjPrintPreview

addPrintPreview(int ID, int x, int y, int width, int height, string flags)

BBjRadioButton

addRadioButton(int ID, int x,int y, int width, int height, string title)

BBjRadioButton

addRadioButton(int ID, int x,int y, int width, int height, string title, string flags)

BBjRadioGroup

addRadioGroup()

BBjRadioGroup

addRadioGroup(BBjVector radiobutton!)

BBjSlider

addVerticalSlider(int ID, int x,int y, int width, int height)

BBjSlider

addVerticalSlider(int ID, int x,int y, int width, int height, string flags)

BBjStaticText

addStaticText(int ID, int x,int y, int width, int height, string title)

BBjStaticText

addStaticText(int ID, int x,int y, int width, int height, string title, string flags)

BBjStatusBar

addStatusBar(int ID)

BBjStatusBar

addStatusBar(int ID, string flags)

BBjTabCtrl

addTabCtrl(int ID, int x, int y, int w, int h)

BBjTabCtrl

addTabCtrl(int ID, int x, int y, int w, int h, string flags)

BBjTabCtrl

addTabCtrl(int ID, int x, int y, int w, int h, string flags, string styles)

BBjTabCtrl

addTabCtrl(int ID, int x, int y, int w, int h, string flags, string styles, string tabDesc)

BBjTabCtrl

addTabCtrl(int ID, int x, int y, int w, int h, string flags, string styles, string tabDesc, int imageList)

BBjToolButton

addToolButton(int ID, int x, int y, int width, int height, string title)

BBjToolButton

addToolButton(int ID, int x, int y, int width, int height, string title, string flags)

BBjTree

addTree(int ID, int x, int y, int width, int height)

BBjTree

addTree(int ID, int x, int y, int width, int height, string flags)

BBjScrollBar

addVerticalScrollBar(int ID, int x, int y, int width, int height)

BBjScrollBar

addVerticalScrollBar(int ID, int x, int y, int width, int height, string flags)

BBjSlider

addVerticalSlider(int ID, int x, int y, int width, int height)

BBjSlider

addVerticalSlider(int ID, int x, int y, int width, int height, string flags)

BBjWrappedJComponent

addWrappedJComponent(int ID, int x, int y, int w, int h, ClientObject jComponent)

BBjChildWindow

createChildWindow(int resHandle, int childWindowID, int controlID, int x, int y)

BBjChildWindow

createChildWindow(int resHandle, int childWindowID, int controlID, int x, int y, int context)

BBjVector

getAllControls()

int

getAvailableControlID()

BBjChildWindow

getChildWindow(int id)

BBjChildWindow

getChildWindow(string name)

BBjControl

getControl(int id)

BBjControl

getControl(string name)

BBjDrawPanel

getDrawPanel()

BBjImage

getDrawPanelImage()

BBjControl

getFocusedControl()

int

getFocusedControlID()

int

getHorizontalScrollPosition()

int

getHorizontalScrollWidth()

BBjImage

getIcon()

BBjVector

getIcons()

boolean

getRepaintEnabled()

boolean

getReportAllKeyEvents()

boolean

getReportAllMouseEvents()

int

getVerticalScrollHeight()

int

getVerticalScrollPosition()

string

getWindowFlags()

BBjImage

getWindowImage()

boolean

isEnterAsTab()

void

raise()

BBjControl

restoreControl(BBjControl control)

void

setCursor(string filename)

void

setCursor(int cursorid)

void

setEnterAsTab(boolean enterAsTab)

void

setHorizontalScrollPosition(int position)

void

setIcon(string filename$)

void

setIcon(string filename$, int index)

void

setIcon(BBjImage image!)

void

setIcons(BBjVector images!)

void

setRepaintEnabled(boolean enabled)

void

setReportAllKeyEvents(boolean report)

void

setReportAllMouseEvents(boolean report)

void

setScribble(boolean scribble)

void

setTrack(boolean track)

void

setVerticalScrollPosition(int position)

Methods of BBjWindow implemented for DropTarget

Return Value

Method

int

getDropActions()

void

setDropActions(int actions)

BBjVector

getDropTypes()

void

setDropTypes(BBjVector types!)

Methods of BBjWindow inherited from BBjControl

Convenience Methods of BBjWindow

In BBj 6.0 and higher, BBjWindow provides convenience methods listed in the table below. Each of these method calls getControl(int controlID) and casts the returned value to a specific control type. Convenience methods can be used to avoid using the CAST() Function if the developer knows the type of a control.

In BBj 11.0 and higher, these methods can be called with a string name.

 

Return Value

Method

BBjBarChart

getBarChart(int controlID)

BBjBarChart

getBarChart(string name)

BBjButton

getButton(int ID)

BBjButton

getButton(string name)

BBjCEdit

getCEdit(int ID)

BBjCEdit

getCEdit(string name)

BBjCheckBox

getCheckBox(int controlID)

BBjCheckBox

getCheckBox(string name)

BBjDataAwareGrid

getDataAwareGrid(int controlID)

BBjDataAwareGrid

getDataAwareGrid(string name)

BBjDataBoundGrid

getDataBoundGrid(int controlID)

BBjDataBoundGrid

getDataBoundGrid(string name)

BBjEditBox

getEditBox(int controlID)

BBjEditBox

getEditBox(string name)

BBjEditBoxSpinner

getEditBoxSpinner(int controlID)

BBjEditBoxSpinner

getEditBoxSpinner(string name)

BBjGenericChart

getGenericChart(int controlID)

BBjGenericChart

getGenericChart(string name)

BBjGridHeader

getGridHeader(int controlID)

BBjGridHeader

getGridHeader(string name)

BBjGroupBox

getGroupBox(int ID)

BBjGroupBox

getGroupBox(string name)

BBjHtmlEdit

getHtmlEdit(int controlID)

BBjHtmlEdit

getHtmlEdit(string name)

BBjHtmlView

getHtmlView(int ID)

BBjHtmlView

getHtmlView(string name)

BBjImageCtrl

getImageCtrl(int ID)

BBjImageCtrl

getImageCtrl(string name)

BBjInputD

getInputD(int ID)

BBjInputD

getInputD(string name)

BBjInputDSpinner

getInputDSpinner(int controlID)

BBjInputDSpinner

getInputDSpinner(string name)

BBjInputE

getInputE(int ID)

BBjInputE

getInputE(string name)

BBjInputESpinner

getInputESpinner(int controlID)

BBjInputESpinner

getInputESpinner(string name)

BBjInputN

getInputN(int ID)

BBjInputN

getInputN(string name)

BBjInputNSpinner

getInputNSpinner(int controlID)

BBjInputNSpinner

getInputNSpinner(string name)

BBjLineChart

getLineChart(int controlID)

BBjLineChart

getLineChart(string name)

BBjListBox

getListBox(int ID)

BBjListBox

getListBox(string name)

BBjListButton

getListButton(int ID)

BBjListButton

getListButton(string name)

BBjListEdit

getListEdit(int ID)

BBjListEdit

getListEdit(string name)

BBjMenu

getMenu(int ID)

BBjMenu

getMenu(string name)

BBjMenuBar

getMenuBar(int ID)

BBjMenuBar

getMenuBar(string name)

BBjMenuButton

getMenuButton(int controlID)

BBjMenuButton

getMenuButton(string name)

BBjMenuItem

getMenuItem(int ID)

BBjMenuItem

getMenuItem(string name)

BBjNavigator

getNavigator(int ID)

BBjNavigator

getNavigator(string name)

BBjPieChart

getPieChart(int controlID)

BBjPieChart

getPieChart(string name)

BBjProgressBar

getProgressBar(int ID)

BBjProgressBar

getProgressBar(string name)

BBjRadioButton

getRadioButton(int ID)

BBjRadioButton

getRadioButton(string name)

BBjScrollBar

getScrollBar(int ID)

BBjScrollBar

getScrollBar(string name)

BBjSlider

getSlider(int controlID)

BBjSlider

getSlider(string name)

BBjStandardGrid

getStandardGrid(int ID)

BBjStandardGrid

getStandardGrid(string name)

BBjStaticText

getStaticText(int ID)

BBjStaticText

getStaticText(string name)

BBjStatusBar

getStatusBar(int ID)

BBjStatusBar

getStatusBar(string name)

BBjTabCtrl

getTabCtrl(int ID)

BBjTabCtrl

getTabCtrl(string name)

BBjToolButton

getToolButton(int ID)

BBjToolButton

getToolButton(string name)

BBjTree

getTree(int ID)

BBjTree

getTree(string name)

Events

Callback Code

Object-oriented Event

Read Record Event

Code

ON_ACTIVATE

BBjActivateEvent

Activation

A

ON_CLOSE

BBjCloseEvent

Window Close Box

X

ON_COLOR_CHANGE

BBjColorChangeEvent

System Color Change Event

s

ON_DEACTIVATE

BBjDeactivateEvent

Activation

A

ON_DOUBLE_CLICK

BBjDoubleClickEvent

Mouse Double-Click

2

ON_DROP_TARGET_DROP

BBjDropTargetDropEvent

Drop Target Drop Event

D

ON_KEYPRESS

BBjKeypressEvent

Keypress

t

ON_MINIMIZE

BBjMinimizeEvent

Activation

A

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

BBjResizeEvent

Window Resize

S

ON_RESTORE

BBjRestoreEvent

Activation

A

ON_RIGHT_MOUSE_DOWN

BBjRightMouseDownEvent

Right Mouse Button Down Event

R

ON_SCREEN_RESIZE

BBjScreenResizeEvent

Screen Resize Event

s

ON_WINDOW_MOVE

BBjWindowMoveEvent

Window Move

L

ON_WINDOW_SCROLL

BBjWindowScrollEvent

Scrollbar Move

p

ON_WINDOW_GAINED_FOCUS

BBjWindowGainedFocusEvent

Window Focus Gained/Lost Event

F

ON_WINDOW_LOST_FOCUS

BBjWindowLostFocusEvent

Window Focus Gained/Lost Event

F

CSS

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 next level contains a BBjWindow structure, the container for individual BBjControls. The BBjWindow defines a special style name (capture) to enable mouse capture mode. When this mode is selected, a mousedown on the window causes it to capture all mouse move events, including ones that fall outside the window bounds, until the next mouseup.

Click here.

Remarks

All BBjControl objects are created via a window object. Except for the tree, all controls created with object syntax can also be manipulated with mnemonics and sendmsgs. They are identical to the controls created with mnemonics or in a resource. All events for the controls still will be generated.

Constants

None.

Example

REM Create a Window

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 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

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



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.