4C Dynamic Positioning

4C Dynamic Positioning

Since version 5.0.4-01, it has been possible to dynamically position a layout on the screen at run time. Version 5.2.9-01 adds the capability to dynamically position the sys.get_answer() dialog as well as the sys.message() message box. The position of a layout can only be set before it is initially displayed on the screen. Dynamic positioning is specified by using two strings. One defines the horizontal position and one defines the vertical position of the layout to be displayed.

You can define the the position of the layout in relation to any of the following:

There are several places that you can set the dynamic positioning of a layout. In order of precedence from highest to lowest they are

The strings are specified using the follwing style
XPos%<n>=<type>%<n>[<ofst>]
and
Ypos%<n>=<type>%<n>
Where <type> is any of the previously mentioned types and <n> is an integer between 0 and 100 inclusive. The optional <ofst> is signed integer.

Some examples should make this clear

Misc notes Examples in 4cSys

Back to Top