
CHAPTER 4: User-Interface Tools Control objects 130
panel
(cont’d) creation_properties: Optional. An object that contains the
following property:
name: A unique name for the control.
borderStyle: A string that specifies the appearance of the
border drawn around the panel. One of
black, etched,
gray, raised, sunken. Default is etched.
su1PanelCoordinates: When true, this panel automatically
adjusts the positions of its children for compatability with
Photoshop CS. Default is false, meaning that the panel does
not adjust the positions of its children, even if the parent
window has automatic adjustment enabled.
progressbar Progressbar
A horizontal rectangle that shows progress of an operation. All
progressbar controls have a horizontal orientation. The value
property contains the current position of the progress indicator; the
default is 0. There is a
minvalue property, but it is always 0; attempts
to set it to a different value are silently ignored.
To add to a window
w:
w.add (“progressbar” [, bounds, value, minvalue,
maxvalue, creation_properties}]);
bounds
: Optional. The control’s position and size.
value: Optional. The initial position of the progress indicator.
Default is 0.
minvalue: Optional. The minimum value that the value
property can be set to. Default is 0. Together with
maxvalue,
defines the scrolling range.
maxvalue: Optional. The maximum value that the value
property can be set to. Default is 100. Together with
minvalue,
defines the scrolling range.
creation_properties: Optional. An object that contains the
following property:
name: A unique name for the control.
Type keyword Class name Description
Kommentare zu diesen Handbüchern