background image
C H A P T E R 6
Pickers, Pop-up Views, and Overviews
Specifying the List of Items for a Popup
6-37
The
clMonthView
view class displays a monthly calendar. Figure 6-47 shows
an example.
Figure 6-47
Example of a month view
Specifying the List of Items for a Popup
6
You specify the item list for
protoPicker
,
protoTextList
,
protoPopUpButton
,
proptoPopupInPlace
, and
PopUpMenu
in
an array. In the simplest case, this is an array of strings, but it can contain
different kinds of items:
simple string
A string. You can control the pickability of a text item or add
a mark to the display by specifying the text in a frame, as
described in Table 6-1 (page 6-38).
bitmap
A bitmap frame or a NewtonScript frame, as returned from
the
GetPictAsBits
compile-time function. You can
control the pickability of the item or add a mark to the
display by placing the bitmap in a frame, as described in
Table 6-1 (page 6-38).
icon with string
A frame that specifies both a string and an icon, as described
in Table 6-2 (page 6-38).
separator line
An instruction to display a line that runs the width of the
picker. To display a dashed gray line, specify the symbol
'pickSeparator
. For a solid black line, specify the
symbol
'pickSolidSeparator
.
two-dimensional grid
A frame describing the grid item, as described in Table 6-3
(page 6-39).
If all the items in the picker list cannot fit into the view, the user can scroll the list
to see more items.
Table 6-1 describes the frame used to specify simple string and bitmap items in the
picker list.
Current day
Selected day
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна