inherits from Box;
Class PageTurnBox draws an image of a pair of book pages, including a dog-ear corner in a card or form to simulate the appearance and action of turn pages in a book.
Instantiate: sometimes Subclass: rarely Call its methods: rarely
You might use objects of class PageTurnBox if you want to simulate a book's appearance and page-turning ability.
Class PageTurnBox defines the following methods:
| Method | Description |
|---|---|
AboutToHide |
Overridden to turn blinking off before hiding. |
| Blink | Determines whether corner blinks periodically. |
| CanContain | Overridden to always return false. |
| Draw | Overridden to draw the object. |
| Idle | Overridden to blink the corner if appropriate. |
| SetBlink | Sets whether corner should blink periodically. |
| Tap | Overridden to test whether user tapped page-turn area. |
| Touch |
Class PageTurnBox defines the following fields::
| Field | Type | Description |
|---|---|---|
| Inherited from SingleLinkable | ||
| next | Object | Next item in view list |
| Inherited from Linkable | ||
| previous | Object | Previous item in view list |
| Inherited from Viewable | ||
| superview | Viewable | Container for this object |
| subview | Viewable | Object contained by this object |
| relativeOrigin | Dot | Origin relative to superview |
| contentSize | Dot | Size of content rectangle |
| viewFlags | Unsigned | Property settings |
| labelStyle | TextStyle | Text style of object's label |
| color | Color | Color of object's content |
| shadow | Shadow | Shadow drawn with object |
| sound | Sound | Sound associated with object |
| Inherited from HasBorder | ||
| border | Border | Frame drawn around object |
| Defined by PageTurnBox | ||
| turnRight | Boolean | Responds to request to turn page forward |
| turnLeft | Boolean | Responds to request to turn page back |
| drawPageNums | Boolean | Determines whether page numbers are drawn at bottom |
| blink | Boolean | Determines whether right page corner blinks |
| blinkHilite | Boolean | Indicates whether right page corner is blinking right now |
| lastBlink | Unsigned | Time of last blink in milliseconds |
| tapMargin | Micron | Width of active area for page turning |
| centerImage | BorderImage | Image to repeat to make center line |
| tabImage | Image | Imaeg for left page turn folded over tab |
| numberPosition | Dot | Location of page number on left page |
overrides AboutToHide Call: rarely Override: sometimes
Class PageTurnBox overrides AboutToHide to make sure the corner is not blinking before it is hidden.
overrides CanContain Call: rarely Override: sometimes
Class PageTurnBox overrides to always return false.
overrides Draw Call: rarely Override: sometimes
Class PageTurnBox overrides Draw to draw its center line, border, and page numbers.
overrides Idle Call: rarely Override: sometimes
Class PageTurnBox overrides Idle to blink the page turn box if the appropriate flags are set. See the description of this class's fields for more information.
overrides Tap Call: rarely Override: sometimes
Class PageTurnBox overrides Tap to test whether the user has tapped the page-turning areas.