window (x, y, dx, dy, bmap, varX, varY);
Displays a cutout 'window' from a bitmap; can be used for a bar graph
display.
Parameters:
| x |
X position of upper left edge |
| y |
Y position of upper left edge |
| dx |
width of window |
| dy |
height of window |
| bmap |
Bitmap name or file name; must not be smaller
than dx, dy |
| varX |
Variable determining the horizontal bitmap position of the
window in pixels |
| varY |
Variable determining the vertical bitmap position of the
window in pixels |
Remarks:
The window may only be placed inside the bitmap's borders.
Example:
BMAP* compass_map = "compass.pcx";
var compass_x = 0;
var compass_y = 0;
PANEL* aircraft_pan =
{
pos_x = 4; pos_y = 4;
window (200,0,40,20,compass_map,compass_x,compass_y);
flags = VISIBLE;
}
See also:
PANEL, BMAP, layer, pos_x,
pos_y, alpha, flags, button,
slider, digits, mouse_map
► latest
version online