The DejaVU Framework -- hush 3.1
[.] Papers Tutorials Examples Manuals Interfaces Sources Packages Resources ?

Manual: CONTROL 2


[.] [man] man1 man2 man3 man4 man5 man6 man7 man8 man9 manl mann ?

NAME

control.

SYNOPSIS


  interface control : public screen
  {
    control(char* p,char* options = "");
    control(widget* w,char* p,char* options = "");
    virtual ~control();
     
    void factor(double fct);  // speed factor
  
    void reset();
  };
  

slide: SYNOPSIS

DESCRIPTION


The control widget consists of a start/stop button, a quit button and a scale widget for the speed. It is derived from screen so the widget can be scaled by adjusting the width and height. The factor option takes the speed factor (default 1). The simulation is delayed by the interactivation time multiplied by this factor and (100-x)/100 where x is the value of the scale widget.


slide: DESCRIPTION

OPTIONS


    -foreground <color = white>
    -widgets <color = blue>
    -background <color = grey>
    -factor <double = 1>
    -width <coord = 180>    // width/180 == height/120
    -height <coord = 120>
  

slide: OPTIONS

EXAMPLE


    toplevel* t = new toplevel(".control");
    control* c = new control(t,".c");
    tk -> pack(c);
    tk -> update();
  

slide: EXAMPLE

REMARKS


This as an addition to application::main would add an extra contol widget.


slide: REMARKS

SEE ALSO

kit(4), toplevel(5), screen(6)
[.] Papers Tutorials Examples Manuals Interfaces Sources Packages Resources ?
Hush Online Technology
hush@cs.vu.nl
09/24/99