background image
C H A P T E R 6
Pickers, Pop-up Views, and Overviews
6-46
Summary
Text Picker Protos
6
protoTextPicker
6
aProtoTextPicker := {
_proto:
protoTextPicker,
label:
string
,
// picker label
indent:
integer
,
// indent
labelFont:
fontSpec
,
// font for label
entryFont:
fontSpec
,
// font for picker line
Popit:
function
,
// user tapped picker
PickActionScript:
function
,
// returns selected item
PickCancelledScript:
function
,
// user cancelled picker
TextSetup:
function
,
// returns text string
...
}
protoDateTextPicker
6
aProtoDateTextPicker := {
_proto:
protoDateTextPicker,
label:
string
,
// picker label
date:
integer
,
// initial and currently
// selected date
longFormat:
symbol
,
// format to display date
shortFormat:
symbol
,
// format to display date
PickActionScript:
function
,
// returns selected item
PickCancelledScript:
function
,
// user cancelled picker
...
}
protoDateDurationTextPicker
6
aProtoDateDurationTextPicker := {
_proto:
protoDateDurationTextPicker,
label:
string
,
// picker label
labelFont:
fontSpec
,
// display font
entryFont:
fontSpec
,
// picked entry font
startTime:
integer
,
// initial start date
stopTime:
integer
,
// initial end date
longFormat:
symbol
,
// format to display date
shortFormat:
symbol
,
// format to display date
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна