C H A P T E R 7
Controls and Other Protos
7-24
Summary
viewValue:
integer
,
// current value of radio button
ViewDrawScript:
function
,
// to highlight button
...
}
protoCloseBox
7
aProtoCloseBox := {
_proto: protoCloseBox,
viewFlags:
integer
,
// viewFlags constants
viewBounds:
boundsFrame
,
viewJustify:
justificationFlags
,
viewFormat:
formatFlags
,
ButtonClickScript:
function
,
// called before closing
...
}
protoLargeCloseBox
7
aProtoLargeCloseBox := {
_proto: protoLargeCloseBox,
viewFlags:
integer
,
// viewFlags constants
viewBounds:
boundsFrame
,
viewJustify:
justificationFlags
,
viewFormat:
formatFlags
,
ButtonClickScript:
function
,
// called before closing
...
}
protoCheckbox
7
aProtoCheckbox := {
_proto: protoCheckbox,
viewBounds:
boundsFrame
,
viewFormat:
formatFlags
,
viewFont:
fontFlags
, // font for text label
text:
string
,
// the checkbox label
buttonValue:
value,
// value when box is checked
viewValue:
value
,
// current value (nil=unchecked)
ValueChanged:
function
,
// checkbox value changed
ToggleCheck:
function
,
// toggles checkbox state
...
}