skip to main content

Controls Reference : RIBBON : Properties : Layout-Manager

Layout-Manager
This property associates a Layout Manager with the Ribbon. Three 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 - Display a Ribbon control with layout manager
procedure division.
  display ribbon
          tab-to-add ( "Ops 1" "Ops 2")
          bitmap-number ( 0 0)
          hint "Ribbon tool bar"
          header-align 1
          layout-manager lm-resize
          bitmap-width 18
          bitmap-handle icon-png
          handle screen-1-rbn-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