next up previous contents
Next: Panels for parameter handlers Up: Graphics Previous: Windows (window)

   
Panels (panel)

Definition

Panels are windows consisting of a panel section only (cf. section Windows). They are used for displaying text messages and updating the values of variables.

Creation

panel P; creates an empty panel P.

panel

P(string s); creates an empty panel P with header s.

panel

P(int w, int h); creates an empty panel P of width w and height h.

panel

P(int w, int h, string s); creates an empty panel P of width w and height h with header s.

   

Operations

All window operations for displaying, reading, closing and adding panel items are available (see section panel-operations). There are two additional operations for opening and reading panels.

int P.open(int x = window::center, int y = window::center)
    P.display(x,y) + P.read_mouse() + P.close().
int P.open(window& W, int x=window::center, int y=window::center)
    P.display(P,x,y) + P.read_mouse() + P.close().


next up previous contents
Next: Panels for parameter handlers Up: Graphics Previous: Windows (window)
LEDA research project
1998-10-02