C H A P T E R 6
Pickers, Pop-up Views, and Overviews
Specifying the List of Items for a Popup
Table 6-3 describes the frame required to specify a two-dimensional grid item in
the picker list.
An integer that defines a text indent to use for this item and
subsequent icon/string items. This integer specifies the
number of pixels to indent the text from the left side of the
picker view. You can use it to line up a number of text items
that may have icons of varying width. Specify 1 to cancel
the indent effect for the current and subsequent text items.
The icon is always centered within the indent width.
You can give this slot for the first item in order to force all
items to be the same size. If you use icons in a list that can
become large enough to scroll, you should specify the
slot for every item. You can also use this
slot for any item to specify a height different from other
items. (When you use P
, you must specify a
slot for the first item, because P
ignores the height of the icon.)
Item frame for two-dimensional grid
A binary object representing the bitmap of the grid item. A
bitmap is returned in the
slot in the frame returned by
the compile-time function
The bitmap is a complete picture of the grid item, including
the lines between cells and the border around the outside of the
cells. There must be no extra white space outside the border.
Each cell must be the same size and must be symmetrical.
The bitmap bounds frame, from the
slot in the frame
The number of columns in the grid (must be non-zero).
The number of rows in the grid (must be non-zero).
Item frame for string with icon (continued)