News in versions: FastGrid 1.0, TreeGrid 17.0
FastGrid FastSheet ExamplesSamples DocumentationDoc Download Licensing Prices Buy Development
services
References References Contacts
TreeGrid Gantt chart SpreadSheet ExamplesSamples DocumentationDoc Download Licensing Prices Buy Contacts

8. Toolbar size and position

Row, column and cells sizes, paddings, margins and spanning cells together

  • All the textboxes are individual toolbars with only one cell, just for demonstration of toolbar positioning.
  • Toolbars are placed in row parts of type "Toolbars". The "Toolbars" part is always as wide as the grid width, but the part does not resize grid according to its content.
    Toolbars can contain the same cells as table rows, but the cells are not aligned in columns and every the cell can have its width.
  • By default the toolbars in their part are placed horizontally on the same line, one by one. After the toolbars reach the line end, they are wrapped to the next line, except if set the part attribute

    NoWrap

    .
    The toolbar can be wrapped also manually, before or after, by setting its attribute

    NewLine

    .
  • The toolbars can be placced also vertically on more levels in one toolbars line.
    It is controlled by toolbar

    Pos

    attribute. It places the toolbar relative to the previous toolbar(s).
    The toolbar can be placed below the previous toolbar, on the same level, back on the first level, etc.
  • It is possible to let users to reorder the toolbar, to hide or show the toolbars or individual cells by setting Cfg attribute

    DraggingToolbars

    .
    This mode can be turned on / off by toolbar icon UpdateToolbars. If used, this icon and its parent toolbar Layout cannot be hidden by users.
  • Every toolbar cell can have set its with by

    Width

    cell attribute. For Width = 0 the cell width is calculated according to its content.
    Default width for textual cells is 100, for icons is 0.
    The cell width can be resized by mouse dragging, if it has set attribute

    UseResize

    , bit 2.
  • Every toolbar can have set its height by

    Height

    toolbar attribute.
    If not set the Height attribute, it is used Cfg attribute

    ToolbarHeight

    , default is 30.
    The toolbar height can be resized by mouse dragging its particular cell(s), if the cell has set attribute

    UseResize

    , bit 1.