property ToolBarCRD.Format as String
Specifies the CRD format to arrange the objects inside the control.

TypeDescription
String A String expression that specifies CRD format to arrange the items on the toolbar. The Exontrol's Custom Row Designer ( exCRD ) is a WYSWYG tool to build new layouts for cells/nodes, items/rows or columns/fields. The exCRD tool generates CRD strings from the layout you built. The syntax of CRD strings is designed to be easy to build, change and read. Using CRD strings is powerful than preformatted card view, group view formats, nested bands, and so on, since you are free to define the full layout of the cell/node, item/row or a column/field. 
The Format property adds/removes items in the toolbar control. The Item property retrieves an item from the toolbar. The Caption property specifies the item's HTML caption. The ToolTip property specifies the item's tooltip which is shown when the cursor hovers it. The UserData property associates any extra data to an item. The Enabled property enables or disables the specified item. The Select event notifies your application once the user clicks / selects the item.

For instance, here are few simple CRD strings:

 

The CRD syntax in BNF notation is defined like follows:

<CRD> ::= [<Options>] <GroupCRD>
<GroupCRD> ::= <UpPart> [ "|" <DownPart> ] 
<UpPart> ::= <Lines>
<DownPart> ::= <Lines>
<Lines> ::= <Line> | "(" <Lines> ")" | <Lines> "/" <Lines>
<Line> ::= [<Height>;] <LeftPart> [ "|" <RightPart> ] 
<LeftPart> ::= <Fields>
<RightPart> ::= <Fields>
<Fields> ::= <Field> | "(" <Fields> ")" | <Fields> "," <Fields>
<Field> ::= <Identifier> [<Options>] [ ":" <Width>]
<Identifier> ::= <Index> | <Caption>
<Options> ::= <Options> [ "[" <Option> "]" ]
<Option> ::= <Property> [ "=" <Value> ]
<Property> ::= <letter> | <Property> [ <letter> | <digit> ]
<Value> ::= <Number> | <String>
<Index> ::= <Number>
<Caption> ::= <String>
<Width> ::= <Number>
<Height> ::= <Number>
<Number> ::= <digit><Number>
<String> ::= """<any_character>"""
<digit> ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

The CRD strings may include the following elements:

The Index and Caption element may have one or more of the following options:

For instance, the [b=5] means that the element draws the top and the bottom borders. For instance, if the [b=0] is at the beginning of the CRD string, it specifies that by default, no borders are shown.

The Caption element may have one or more of the following options:

  • 0, TopLeft, Aligns the caption to the top left corner. 
  • 1, TopCenter, Centers the caption on the top edge.
  • 2, TopRight, Aligns the caption to the upper right corner.
  • 16, MiddleLeft, Aligns horizontally the caption on the left side, and centers the caption vertically
  • 17, MiddleCenter, Puts the caption on the center of the element. (Default)
  • 18, MiddleRight, Aligns horizontally the caption on the right side, and centers the caption vertically
  • 32, BottomLeft, Aligns the caption to the lower left corner
  • 33, BottomCenter, Centers the caption on the lower edge
  • 34, BottomLeft, The caption is resized to fit the source

The options for the CRD string may be ( these options must be always at the beginning of the CRD string ):