class Iup::ProgressBar
A progress bar control, showing a percent-complete value. Typically used to show the progress of a long-running task running within a Timer.
Example
The following creates a vertical bar, starting at a value of 25 out of 50.
Iup::ProgressBar.new do |p| p.orientation = 'vertical' p.bgcolor = '255 0 128' p.fgcolor = '0 128 0' p.rastersize = '30x100' p.max = 50 p.value = 25 end
Also see: ProgressDialog, Timer.
Attributes
Changes style of progress bar to a dashed pattern, as ‘yes’ / ‘no’.
Allows bar to fill available space in indicated direction. Values ‘no’ / ‘horizontal’ / ‘vertical’ / ‘yes’.
Displays an undefined state if set. Values ‘yes’ / ‘no’.
maximum value, default 1.
minimum value, default 0.
‘horizontal’ / ‘vertical’.
returns position in pixels within client window as “x,y”.
Size of the widget, in pixels, value as “widthxheight”.
returns position in pixels on screen as “x,y”.
Tooltip string.
number between min and max, for current position.
Public Class Methods
Source
# File lib/wrapped/progressbar.rb, line 26 def initialize @handle = IupLib.IupProgressBar # run any provided block on instance, to set up further attributes yield self if block_given? end
Creates an instance of a progress bar. If a block is given, the new instance is yielded to it.