BBjImageCtrl
Description
In BBj 5.00 and higher, the BBjImageCtrl object provides methods for manipulating a GUI image control on a BBj Window. Do not confuse BBjImageCtrl with BBjImage, an image object that can be retrieved from the BBjImageCtrl or using the BBjImageManager. (Prior to BBj 5.0 this object was called BBjImage.)
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjImageCtrl
A BBjImageCtrl object is created through the following BBjWindow method:
Return Value |
Method |
---|---|
addImageCtrl(int ID, number x, number y, number width, number height, BBjImage image) |
|
addImageCtrl(int ID, number x, number y, number width, number height, BBjImage image, string flags) |
|
addImageCtrl(int ID, number x, number y, number width, number height, string filename) |
|
addImageCtrl(int ID, number x, number y, number width, number height, string filename, string flags) |
|
addImageCtrl(int ID, BBjImage image) |
|
BBjImageCtrl | addImageCtrl(int ID, BBjImage image, string flags) |
BBjImageCtrl | addImageCtrl(int ID, string filename) |
BBjImageCtrl | addImageCtrl(int ID, string filename, string flags) |
BBjImageCtrl | addImageCtrl(BBjImage image) |
BBjImageCtrl | addImageCtrl(BBjImage image, string flags) |
BBjImageCtrl | addImageCtrl(string filename) |
addImageCtrl(string filename, string flags) |
Methods of BBjImageCtrl
Return Value |
Method |
getImage() |
|
boolean |
|
void |
setDisableable(boolean p_disableable) |
void |
setImage(BBjImage image!) |
Methods of BBjImageCtrl 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 |
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 BBjImageCtrl is a simple <img> element. It defines the following CSS style names:
.BBjImageCtrl (the control)
.BBjImageCtrl.bbj-disabled (the control is disabled)
Remarks
By default, the BBjImageCtrl is visually identical when it's enabled or disabled. In BBj 15 and higher, the IMAGECTRL_DISABLEABLE !COMPAT setting can be set to TRUE to change that default, such that a disabled BBjImageCtrl is grayed out like other BBjControls. See also BBjImageCtrl::setDisableable .
Constants and Methods inherited from BBjControl
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.