%br - Bar

Purpose

To draw a horizontal or vertical bar which is partially filled with a user-selected colour.

Syntax

winio@('%Nbr[options]', fillcolour_value)
double precision fill     (input)
integer colour_value     (input)

Modifiers

Question mark (?) - a help string is supplied.

Description

fill specifies the amount of fill in the range 0 to 1 inclusive.

colour_value is the RGB value of the fill colour.

N is a integer constant giving the length of the bar in average characters.

options may include no_border and percentage, and one of left_right, right_left, top_bottom, bottom_top. percentage adds a progress indicator (in the form of a percentage) to a horizontal bar only.

[panel=val] has been added to attach the bar to a %sb (Status Bar) panel. val is the integer value of a %sb (Status Bar) panel. The progress bar is given [ms_style] attribute and appears in the given panel of the status bar.

Example

winio@('%15br[bottom_top]', fill, RGB@(200,200,0))

See also

%sl (Slider)

 

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited