Use the IupProgressBar control of the main library.
Creates a Gauge control. Shows a percent value that can be updated to simulate a progression. It inherits from IupCanvas.
This is an additional control that depends on the CD library. It is included in the Controls Library.
Ihandle* IupGauge(void); [in C] iup.gauge{} -> (elem: ihandle) [in Lua] gauge() [in LED]
Returns: the identifier of the created element, or NULL if an error occurs.
DASHED: Changes the style of the gauge for a dashed pattern. Default is "NO".
FGCOLOR: Controls the gauge and text color. The default is "64 96 192".
MAX (non inheritable): Contains the maximum value. Default is "1".
MIN (non inheritable): Contains the minimum value. Default is "0".
PADDING: internal margin. Works just like the MARGIN attribute of the IupHbox and IupVbox containers, but uses a different name to avoid inheritance problems. Default value: "0x0". (since 3.0)
SHOW_TEXT: Indicates if the text inside the Gauge is to be shown or not. If the gauge is dashed the text is never shown. Possible values: "YES" or "NO". Default: "YES".
SIZE (non inheritable): The initial size is "120x14". Set to NULL to allow the automatic layout use smaller values.
TEXT (non inheritable): Contains a text to be shown inside the Gauge when SHOW_TEXT=YES. If it is NULL, the percentage calculated from VALUE will be used. If the gauge is dashed the text is never shown.
VALUE (non inheritable): Contains a number between "MIN" and "MAX", controlling the current position.
ACTIVE, BGCOLOR, EXPAND, FONT, SCREENPOSITION, POSITION, MINSIZE, MAXSIZE, WID, TIP, RASTERSIZE, ZORDER, VISIBLE: also accepted.
MAP_CB, UNMAP_CB: common callbacks are supported.
The Two Types of Gauge