Fieldpine Logo Documentation Home  
User Interface Home

The total directive lets you place various totals on screen that dynamically update as the sale progresses.

Command Options

at(x1,y1,x2,y2)

Defines the bounding box position the total is drawn on the window.

brgb(N)

Specifies the RGB triple colour to draw the total background in.

rgb(N)

Specifies the RGB triple colour for the text of the total.

total(name)

Sets the type of total to be displayed. The following total types are predefined:

format(string)

total2(A,B)

tip(N)

An optional tool tip to be displayed when the mouse hovers over the total text

hook(N)

Manually hook this total to internal events.

font(string)

Sets the font characteristics to use on the total output

noborder

Request that no border is drawn around this total

transparent

align(A)

scaledown(N)

If the text is too large to fit into the bounding rectangle, reduce the font size until the text can fit without clipping.

if(cond)

Provides additional commands if the condition is true or false. This can be used to conditionally alter the appearance or even the content of the text.

position(N)

A list of keywords allowing full control over positioning of the text. Acceptable keywords are: center, left, right, bottom, tab, noclip, prefix, singleline, top, middle, wordwrap, disable, hidden. Each keyword can also be prefixed with "-" to remove it from the list of styles. eg "position(center -singleline wordwrap)" Center the text, use wordwrap and multiple lines if needed.


Internal Operation


Examples of Use

A total that displays total value of sale

control
define
	total(TOTAL:   %SALETOTAL%)
	tip(The total value of this sale before rounding.)
	at(478,450,740,500)
	align(right)
	font(Arial,28,bold)
	rgb(0,0,0)
	brgb(235,235,235)
end