BBjStaticText
Description
The BBjStaticText object provides methods for manipulating a GUI static text control.
Implemented Interfaces
RecordSetBindable,SimpleRecordSetBindable,TextAlignable
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjStaticText
A BBjStaticText object is created through the following BBjWindow methods:
Return Value |
Method |
---|---|
BBjStaticText |
addStaticText(int ID, number x, number y, number width, number height, string title) |
BBjStaticText |
addStaticText(int ID, number x, number y, number width, number height, string title, string flags) |
BBjStaticText |
addStaticText(int ID, string title) |
BBjStaticText |
addStaticText(int ID, string title, string flags) |
BBjStaticText |
addStaticText(string title) |
BBjStaticText |
addStaticText(string title, string flags) |
Methods of BBjStaticText
Return Value |
Method |
int |
|
int |
|
boolean |
|
int |
|
int |
|
void |
setBottomMargin(int margin) |
void |
setLeftMargin(int margin) |
void |
setLineWrap(boolean wrap) |
void |
setRightMargin(int margin) |
void |
setTopMargin(int margin) |
Methods of BBjStaticText implemented for RecordSetBindable
Return Value | Method |
---|---|
void | bindRecordSet(BBjRecordSet recordset!, string fieldname) |
string | getBoundFieldName() |
Methods of BBjStaticText implemented for SimpleRecordSetBindable
Return Value | Method |
---|---|
BBjRecordSet | getBoundRecordSet() |
void | unbindRecordSet() |
Methods of BBjStaticText implemented for TextAlignable
Return Value | Method |
---|---|
int | getAlignment() |
void | setAlignment(int align) |
Methods of BBjStaticText inherited from BBjControl
Events
Callback Code |
Object-oriented Event |
Read Record Event |
Code |
---|---|---|---|
ON_MOUSE_ENTER |
E |
||
ON_MOUSE_EXIT |
E |
||
ON_POPUP_REQUEST |
r |
||
ON_RIGHT_MOUSE_DOWN |
R |
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 BBjStaticText control is a simple HTML <div> element. It defines the following style names:
.BBjStaticText
.BBjStaticText.bbj-disabled
Remarks
None.
Constants inherited from BBjControl
Example
|
See Also
TEXT Mnemonic - Create a Static Text Control
CALLBACK Verb - Register BBj Subroutine
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.