| Requires: |
|
Framed box is a resizable window control that has frame border around the client area.
Its resource stores the frame dimensions and keeps offscreen images of all elements of the frame.
Additionally this resource can define window effects (as described in QWindow)
and initial opacity.
QWndCtrl class.
QBoxRes(t, r, b, l, tc, tr, mr, br, bc, bl, ml, tl, bgcoloropt, bgtileopt, effectsopt, opacityopt) |
|---|
|
Creates new instance of box resource.
Parameters
t - Height of the top border (in pixels).r - Width of the right border (in pixels).b - Height of the bottom border (in pixels).l - Width of the left border (in pixels).tc - URL of the top-center tile (image).tr - URL of the top-right corner image.mr - URL of the middle-right tile (image).br - URL of the bottom-right corner image.bc - URL of the bottom-center tile (image).bl - URL of the bottom-left corner image.ml - URL of the middle-left tile (image).tl - URL of the top-left corner image.bgcolor - Optional. Defines background color of the client area (white by default).bgtile - Optional. Defines image for the client area tiling (has no default value).effects - Optional. Defines effects mask (uses defaults from QWindow if missed).opacity - Optional. Defines initial opacity (uses defaults from QWindow if missed). |
| Property | Access | Description |
|---|---|---|
effects | R | Effects mask (if defined, null otherwise). |
opacity | R | Initial opacity of the box (if defined, null otherwise). |
bgcolor | R | Color of the box client area. |
bgtile | R | Image for tiling of the client area (if defined, null otherwise). |
T | R | Height of the top border (in pixels). |
R | R | Width of the right border (in pixels). |
B | R | Height of the bottom border (in pixels). |
L | R | Width of the left border (in pixels). |
TC | R | Refers to Image object that keeps picture of top-center tile. |
TR | R | Refers to Image object that keeps picture of top-right corner. |
MR | R | Refers to Image object that keeps picture of middle-right tile. |
BR | R | Refers to Image object that keeps picture of bottom-right corner. |
BC | R | Refers to Image object that keeps picture of bottom-center tile. |
BL | R | Refers to Image object that keeps picture of mottom-left corner. |
ML | R | Refers to Image object that keeps picture of middle-left tile. |
TL | R | Refers to Image object that keeps picture of top-left corner. |