A gauge is a horizontal or vertical bar which shows a quantity (often time).
wxGauge supports two working modes: determinate and indeterminate progress.
The first is the usual working mode (see setValue/2 and setRange/2) while the second can be used when the program is doing some processing but you don't know how much progress is being done. In this case, you can periodically call the pulse/1 function to make the progress bar switch to indeterminate mode (graphically it's usually a set of blocks which move or bounce in the bar control).
wxGauge supports dynamic switch between these two work modes.
There are no user commands for the gauge.
This class supports the following styles:
wxWidgets docs: wxGauge
new() -> wxGauge()
new(Parent, Id, Range) -> wxGauge()
new(Parent, Id, Range, Options :: [Option]) -> wxGauge()
Constructor, creating and showing a gauge.
destroy(This :: wxGauge()) -> ok
Destructor, destroying the gauge.
create(This, Parent, Id, Range) -> boolean()
create(This, Parent, Id, Range, Options :: [Option]) -> boolean()
Creates the gauge for two-step construction.
See new/4 for further details.
getRange(This) -> integer()
Returns the maximum position of the gauge.
getValue(This) -> integer()
Returns the current position of the gauge.
isVertical(This) -> boolean()
Returns true if the gauge is vertical (has wxGA_VERTICAL style) and false otherwise.
setRange(This, Range) -> ok
Sets the range (maximum value) of the gauge.
This function makes the gauge switch to determinate mode, if it's not already.
When the gauge is in indeterminate mode, under wxMSW the gauge repeatedly goes from zero to range and back; under other ports when in indeterminate mode, the range setting is ignored.
setValue(This, Pos) -> ok
pulse(This) -> ok
Switch the gauge to indeterminate mode (if required) and makes the gauge move a bit to indicate the user that some progress has been made.