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.
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.
- absolute
(9 Jun 2015. P1856) Indicates that the positioning coordinates are physical screen relative rather than relative to the parent screen. If you have multiple monitors on your computer the position 0,0 is the top left of your primary monitor not the current screen you are displaying on. - quick Mark this screen as highly temporary (ie will be quick and disappearing shortly). This flag is rarely used and only required in exceptional circumstances where events should not anchor to this screen.
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