size_x
size_y
Horizontal and vertical size of the panel, in pixels.
Range:
0 .. screen size
Type:
var
Remarks:
-
The panel size is multiplied with the panel scale.
It determines the area within which the panel reacts on mouse clicks.
- If no size is given in the PANEL definition, the size of the panel
bitmap is used. If neither a size nor a bitmap is given, the size
of the largest panel element (f.i. a button) is used.
- If the size is smaller than the panel bitmap, the bitmap is clipped.
A6.6 If the size is larger,
the bitmap is repeated on the panel background, and thus can be used
for a background pattern.
Example:
PANEL* red_square =
{
size_x = 100;
size_y = 100;
red = 255;
green = 0;
blue = 0;
flags = LIGHT | VISIBLE;
}
See also:
PANEL, pos_x,
scale_x