Previous Topic

Next Topic

Book Contents

Book Index

sub Element

The sub element is used to create a pull-down palette. The sub tags enclose the buttons and sub-palettes which are to be placed on the palette.

The sub element binds the pull-down palette to the button immediately preceding it. Note that if there is no preceding button, the palette created won't be attached to anything and won't be accessible.


Attributes

name

permitted values

size

[s | w | ws]

cols

positive number

The sub element accepts the same size attribute as the tb element, with the same effect. Giving a value of "s" indicates that all the buttons on the pull-down palette should be small, "w" indicates they should all be wide, and "ws" indicates they should be wide and small.

Small buttons usually work well for symbol palettes, while wide buttons work better for templates. Note that all characters, templates and icons on a toolbar are drawn at a common scale. If you put a wide expression in a small button, the magnification factor will be so small that many of the other buttons images will be too small to read. Thus, it is usually best to try to pick appropriate button sizes for their contents.

The cols attribute specifies how many columns wide the created pull-down palette will be. MathFlow automatically places the buttons left to right and top to bottom on the palette regardless of the number of columns, and fills any empty space in the last row.


Examples

<tb><btn>A</btn><sub><btn>FRAC</btn></sub></tb>

Toolbar configuration example 11

<tb><btn>TRIGPALETTE</btn><sub size='w'><btn>COS</btn>
<btn>SIN</btn><btn>theta</btn></sub></tb>

Toolbar configuration example 12

<tb><btn>TRIGPALETTE</btn><sub size='w' cols='2'><btn>COS</btn>
<btn>SIN</btn>  <btn>theta</btn><btn>pi</btn></sub></tb>

Toolbar configuration example 13

Previous Topic

Next Topic

Book Contents

Book Index


[Design Science Home]
Copyright © 1996-2016 Design Science, Inc. All rights reserved.