skip to main content

Controls Reference : TOOL-BAR : Properties : Control Font

Control Font
Since the Tool-Bar control is a container, the controls it contains may inherit some peculiarities.
The font handle set to this property will be the default value of the FONT Property of the controls created in the Tool-Bar control.
This property also affects the way the cell size is calculated. See the Cell Height, Cell Size, and Cell Width properties for further details.
 
Example - Define a tool-bar with 3 buttons and default control font
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
          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