skip to main content

Controls Reference : TOOL-BAR : Properties : Cell Size

Cell Size
This property defines the size (both height and width) of the cell used for positioning the various controls inside the Tool-Bar control.
The value must comply with the following specification:
The cell size is the space the ControlType needs to show the character "0" without truncating it. ControlType can be LABEL, the default, or ENTRY-FIELD. When ENTRY-FIELD is specified, the cell is larger.
FontHandle is the font used to calculate the cell size. If not specified, the font set in the Control Font property will be used.
When the SEPARATE clause is specified, the cell size is increased, so that controls placed on contiguous lines or columns are not too close to each other.
When the OVERLAPPED clause is specified, the cell size is left unchanged and controls placed on contiguous lines or columns look joint. This is the default setting.
 
Example - Define a tool-bar with 3 buttons and cell size
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 size 12
          control font Default-Font
          background-color 6
          foreground-color 7
          handle screen-1-tb-1-hdl
  display screen-1-tb-1 upon 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