Fieldpine Logo Documentation Home  
User Interface Home

The window() directive controls how the overall screen should be displayed

at(left,top,width,height)

Specifies the top left corner and width of the screen.

(29 Jan 2015. P1847) If width or height are set to -2, the POS determines the current screen width or height and uses that value. You can either have either width or height (or both) adjusting to the current screen size. This option is designed for where you may have additional optional UI elements on the right side of the screen (often a browser control)

The coordinates are relevant to the parent screen if the screen is a child of another window. In other words a screen that uses at(0,0,60,60) will create a screen at position 0,0 relative to the parent screen, not the overall computer screen. If you wish to absolutely position a window relative to the physical screen use flags(absolute)

rgb(%d,%d,%d)

brgb(red,green,blue)

Sets the background colour for the screen. Each argument can take a value from 0 (none) to 255 (maximum).

label(%s)

accept(%s)

minimax

Places a Minimize/Maximize button on the title bar, if present. Typically this option is only placed on the main screen and not sub menus (which are usually modal).

boxfrau-overlay

bitmap(%s)

nosale

notitle

float

detached

help(%s)

scale

nofocus

delete

action(%s,%s)

style(%d)

timer(%d,%d,%s)

callerid(%d,%s)

Retired.

stack(%s)

Reserved for Fieldpine use only. Allows creation of UI designs that can support multiple active independant sales.

cancel(%d)

flags(arg[,arg])

Allows you to specify additional flags for the creation of this window.

until(%s,%s)

when(%s,%s)

autokill

radius(arg)

Specifies a Windows region control to be applied to this window. This permits effects such as rounded corners or other shapes. The arg parameter is a list of points passed to the region control. For more indepth information refer to Windows programmer documentation on CRgn and regions.

If more than one point is supplied, the code calls CreatePolygonRgn(). If only one point is supplied it calls CreateRoundRectRgn(). Pseudo code follows showing how this is implemented inside the POS application

	if (PtCount > 1) {
		theRegion.CreatePolygonRgn(&Pts[0], PtCount, WINDING);
	} else {
		theRegion.CreateRoundRectRgn(0, 0, DialogWidth, DialogHeight, Pts[0].x, Pts[0].y);
	}

Example UI definition:

6055|test|||window|at(390,40,410,540) radius(190,0, 45,500, 345,200, 35,200, 335,500, 190,0) rgb(300,0,0)||3003

modal