pan_setvar(PANEL*,var type,var num,var*)

Replaces a variable controlling a panel element.

Parameters:

PANEL* Panel pointer.
type Element type:
1 = digits
4 = slider
5 = window
6 = needle
num Number of the element of the given type , starting with 1. If the element is controlled by two variables, like a window, the digit behind the decimal gives the number of the variable to be affected (e.g. 1.0 = varX, 1.1 = varY of the first window element).
var* Variable pointer.

Remarks:

Examples:

// change the variable indicated by the first digits element
var newvar; // global variable
...
pan_setvar(mypanel,1,1,newvar); 

See also:

PANEL, pan_setpos

► latest version online