| superclass(es) | customControl |
| subclass(es) | - |
| description | The upDownButton control is a control which contains two small buttons,
one for 'up' and one for 'down'. An upDownButton looks like: |
The upDownButton class is useful when a value can be incremented or decremented. There are two callbacks to which can be responded, one if the 'up' button is clicked (onUp/1) and the other if the 'down' button is clicked (onDown/1). |
create(Parent, X, Y, W, H, Output)
| func | Create an upDownButton control at a specified position. Because a button is a child window a parent window must always be specified. The coordinates X and Y determine the position, in window coordinates, of the upper-left corner of the button control. The variables W and H determine the width and height of the control. |
| pre | The variable Parent must refer to a parent window. The X, Y, W and H coordinates must contain integer values. |
| post | If the upDownButton was successfully created then true was assigned to Output, else was false assigned. |
| func | Change the way the upDownButton looks. A flat upDownButton is raised only if the mouse is moved over the control, else it only displays the up- and down images. |
| pre | The variable YesNo must contain true or false. |
| post | If the variable YesNo contained true then the upDownButton acts like a 'flat' button, else it looks like a normal button. |
| func | Make the control draw a border or remove the border. |
| pre | The variable YesNo must contain true or false. |
| post | If the variable YesNo contained true then a border is drawn around the control, else no border is drawn around the control. |
| func | The 'up' button of the control was pressed. |
| pre | The variable Sender refers to the control that was pressed.. |
| post | TRUE |
| func | The down' button of the control was pressed. |
| pre | The variable Sender refers to the control that was pressed.. |
| post | TRUE |