PANEL* some_pan =
{
bmap = "panel.tga"; // panel background
pos_x = 10; // horizontal margin from screen top left
pos_y = 10; // vertical margin from screen top left
hslider (x, y, width, "knob.tga", min, max, variable); // here x and y are the horizontal and vertical margin from panel top left
button (x, y, "clicked.tga", "normal.tga", "mouse_over.tga", Click_function, normal_function, mouse_over_function); // x and y same as slider, and "normal" function can be used for "on mouse out" functions. Functions can be left as NULL if you don't want to use any.
flags = VISIBLE;
}