skip to main content

Controls Reference : TOOL-BAR : Properties : Layout-Manager

Layout-Manager
This property associates a Layout Manager with the tool-bar. Two types of Layout Managers (defined in the isresize.def Copybook) are supported.
For each resize action:
deltaX = current window size / previous window size,
deltaY = current window lines / previous window lines.
For each control:
If the Layout-Data property is not set, each control has its own default behavior.
The list below describes the default behavior of each control:
The user can also specify custom values for some controls directly in the handle definition, without using the Layout-Data property.
Example:
77 h-layout handle of layout-manager, lm-scale "configuration string".
A sample configuration string is provided in the isresize.def Copybook.
The configuration string is composed by a series of <control-type>=<value> separated by a spaces or comma.
<control-type>=<value> must be a unique word. No space may be put inside. The string is case insensitive.
Example:
77 h-layout handle of layout-manager lm-scale "bar=119 textarea=119 label=119 frame=119".
The list below describes the <control-type> you can use in the configuration string.
<value> is a numeric value that is the sum of the constant values that must be used for the control.
In the above sample, 119 is the sum between rlm-resize-x, rlm-move-x, rlm-no-min-x, rlm-resize-y, rlm-move-y, rlm-no-min-y.
Note: inquiring controls Lines and Size properties after the window has been resized returns the initial values and not the new values when the Layout-Manager is LM-SCALE.
 
Example - Define a tool-bar with 3 buttons and layout-manager
screen section.
  01 screen-1-tb-1.
     03 screen-1-pb-4 Push-Button
        column 2.4
        size 5.2 cells 
        lines 2.6 cells 
        title "Exit"
     03 screen-1-pb-5 Push-Button
        column 13.0
        size 5.2 cells 
        lines 2.6 cells 
     03 screen-1-pb-6 Push-Button
        column 20.1
        size 5.2 cells 
        lines 2.6 cells 
procedure division.
  display tool-bar
          cell width 10
          cell height 10
          control font Default-Font
          layout-manager lm-resize
          handle screen-1-tb-1-hdl

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left