1
(******************************************************************************
3
* Copyright (c) 1996-2000 Palm, Inc. or its subsidiaries.
8
* Release: Palm OS SDK 4.0 (63220)
11
* This file defines scroll bar structures and routines.
14
* Feb 6, 1996 Created by Art Lamb
16
*****************************************************************************)
22
uses palmos, coretraps, control;
25
ScrollBarRegionType = Enum;
29
sclDownArrow = Succ(sclUpArrow);
30
sclUpPage = Succ(sclDownArrow);
31
sclDownPage = Succ(sclUpPage);
32
sclCar = Succ(sclDownPage);
35
ScrollBarAttrType = record
36
{$ifdef ALLOW_ACCESS_TO_INTERNALS_OF_SCROLLBARS} // These fields will not be available in the next OS release!
39
UInt16 usable :1; // Set if part of ui
40
UInt16 visible :1; // Set if drawn, used internally
41
UInt16 hilighted :1; // Set if region is hilighted
42
UInt16 shown :1; // Set if drawn and maxValue > minValue
43
UInt16 activeRegion :4; // ScrollBarRegionType
44
UInt16 reserved :8; // Reserved for future use
48
ScrollBarAttrTag = ScrollBarAttrType;
50
ScrollBarType = record
51
{$ifdef ALLOW_ACCESS_TO_INTERNALS_OF_SCROLLBARS} // These fields will not be available in the next OS release!
52
bounds: RectangleType;
54
attr: ScrollBarAttrType;
64
ScrollBarPtr = ^ScrollBarType;
66
procedure SclGetScrollBar(const bar: ScrollBarPtr; var valueP, minP, maxP, pageSizeP: Int16); syscall sysTrapSclGetScrollBar;
68
procedure SclSetScrollBar(bar: ScrollBarPtr; value: Int16; const min, max, pageSize: Int16); syscall sysTrapSclSetScrollBar;
70
procedure SclDrawScrollBar(bar: ScrollBarPtr); syscall sysTrapSclDrawScrollBar;
72
function SclHandleEvent(bar: ScrollBarPtr; const event: EventPtr): Boolean; syscall sysTrapSclHandleEvent;
b'\\ No newline at end of file'