Help Contents / GUI programming / Gauges / Gauge

Gauge parent name range
(Gauge parent name range value style pos size)

outputs a new Gauge on the parent (a Frame or a Graph, main Graph if []). 

name is the name of the control. 

range is the maximal allowed value that the control accepts. 

value is the number shown at startup of the control. 

range and value must be integer numbers. 

style is the window style and can be a combination of (wxGA_HORIZONTAL or wxGA_VERTICAL) with wxGA_SMOOTH. 

wxGA_HORIZONTAL  Creates a horizontal Gauge. 

wxGA_VERTICAL  Creates a vertical Gauge. 

wxGA_SMOOTH  Creates smooth progress bar with one pixel wide update step (not supported by all platforms). 

pos is the position of the Gauge (a list of two integer numbers, x and y), 

size is the size of the Gauge (a list of two integer numbers, width and height). 

Example: 

	g=Gauge [][Gauge1] 400 
	g2=(Gauge [][Gauge1] 400 100 wxGA_horizontal+wxGA_smooth 
		[0 200]) 


next: GaugeDestroy
