Use the following properties to define initial characteristics
of an ISlider* part.
- Part properties are displayed in the part property sheet.
- Style properties are displayed in the Part style
property sheet.
ISlider properties
-
- activeColor
- The active color of the slider. This is defined as a
color property.
- armPixelOffset
- The initial offset of the slider arm from the home
position, in pixels.
- armSize
- The size of the slider arm, in pixels.
- armTickOffset
- The initial offset of the slider arm from the home
position, in tick marks.
- autoDeleteObject
- Specifies whether the C++ object is deleted when the user
closes the window. The default is false. This
property should be true only for objects that are
created dynamically using a Factory.
- autoDestroyWindow
- Specifies whether the system destroys the presentation
object when the C++ object is deleted. The default is false.
This inherited property is not appropriate for objects
created from VisualAge user interface parts. It is
applicable when a C++ class is a wrapper for a
presentation object that it did not create.
- backgroundColor
- The background color of the slider. This is defined as a
color property.
- borderColor
- The border color of the slider. This is defined as a
color property.
- disabledBackgroundColor
- The background color of the slider when it is disabled.
This is defined as a color property.
- disabledForegroundColor
- The foreground color of the slider when it is disabled.
This is defined as a color property.
- drawItemEnabled
- Sets the handleDrawItem style. If this property is
true, the style is set to on.
- enabled
- Specifies whether the slider is enabled for selection.
- enabledForNotification
- Specifies whether the slider is enabled for event
notification. The default is true. Visual
composition connections depend on event notification.
- Fly-over long text
- Text that is displayed in a text control when the mouse
pointer hovers over the slider. To display the fly-over
text, you must add an IVBFlyText* part to the composite
part for the window and specify a text control for the
IVBFlyText* part.
- Fly-over short text
- Text that is displayed in a pop-up caption box when the
mouse pointer hovers over the slider. To display the
fly-over text, you must add an IVBFlyText* part to the
composite part for the window.
- font
- Specifies the text font for the slider. This is defined
as a font property.
- foregroundColor
- The foreground color of the slider. This is defined as a
color property.
- handlers
- The list of attached handlers for the slider. This is
defined as a handlers property.
- helpId
- The ID of the help panel for the slider. To display the
help, you must add an IHelpWindow* part to the composite
part for the primary application window.
- hiliteBackgroundColor
- The background color of the slider when it is
highlighted. This is defined as a color property.
- hiliteForegroundColor
- The foreground color of the slider when it is
highlighted. This is defined as a color property.
- homePosition
- The end of the slider that represents the beginning of a
task. If nothing is specified, homeBottomLeft is
assumed.
- homeBottomLeft--at the left end of a
horizontal slider or the bottom end of a vertical
progress indicator
- homeTopRight--at the right end of a
horizontal slider or the top end of a vertical
slider
- id
- The window ID of the slider.
- inactiveColor
- The inactive color of the slider. This is defined as a
color property.
- itemProvider
- Specifies a direct manipulation item provider for
drag-drop operations. This is defined as a code property.
Enter a pointer to an IDMItemProvider object, or code
that produces this pointer. A connection can be used
instead of setting the code property.
- minimumSize
- Specifies the minimum size of the slider. Multicell
canvases and set canvases use the minimum size to lay out
controls. This is defined as an IVBMinSize property.
- partName
- The composition name of the part. This name is used for
the class instance in generated code.
- primaryNumberOfTicks
- The number of tick increments for the slider scale.
- primaryScale
- The end of the slider that represents the beginning of a
task. If nothing is specified, homeBottomLeft is
assumed.
- scale1--above a horizontal progress
indicator or to the right of a vertical slider
- scale2--below a horizontal progress
indicator or to the left of a vertical slider
- primaryTickSpacing
- The number of pixels between ticks for the slider scale.
- ribbonStripEnabled
- Sets the ribbonStrip style. If this property is true,
the style is set to on.
- shadowColor
- The shadow color of the slider. This is defined as a
color property.
- shaftPosition
- The origin point of the shaft relative to the origin
corner of the slider window. This is defined as an IPoint
property.
- Size and position
- The size and position of the slider. This is defined as a
framing property.
- snapToTickEnabled
- Sets the snapToTickMark style. If this property is
true, the style is set to on.
- style
- The style settings for the slider. This is defined as a
style property. The individual styles are described as
ISlider style properties.
ISlider style properties
-
- add default bits
- Specifies whether the default style settings are used as
a base for part styles. The initial value is true.
The default style is shipped with the following styles on:
- buttonsLeft
- horizontal
- visible
- buttonsBottom
- Specifies whether slider buttons are at the bottom end of
a vertical slider shaft. This style is mutually exclusive
with the buttonsLeft, buttonsRight, and buttonsTop
styles. Ensure that only one of these styles is on,
either explicitly or by default.
- buttonsLeft
- Specifies whether slider buttons are at the left end of a
horizontal slider shaft. This style is mutually exclusive
with the buttonsBottom, buttonsRight, and buttonsTop
styles. Ensure that only one of these styles is on,
either explicitly or by default.
- buttonsRight
- Specifies whether slider buttons are at the right end of
a horizontal slider shaft. This style is mutually
exclusive with the buttonsBottom, buttonsLeft,
and buttonsTop styles. Ensure that only one of
these styles is on, either explicitly or by
default.
- buttonsTop
- Specifies whether slider buttons are at the top end of a
vertical slider shaft. This style is mutually exclusive
with the buttonsBottom, buttonsLeft, and buttonsRight
styles. Ensure that only one of these styles is on,
either explicitly or by default.
- clipChildren
- Specifies whether areas occupied by child windows are
painted by this window object. If this style is on,
child areas are not painted by this window object. This
inherited window style is most useful for frame windows
and composer parts.
- clipSiblings
- Specifies whether areas occupied by sibling windows are
painted by this window object. If this style is on,
sibling areas are not painted by this window object. This
inherited window style is most useful for frame windows.
- clipToParent
- Specifies whether a window object paints only within the
bounds of its parent window. If this style is on,
painting is restricted to the bounds of the parent.
- group
- Specifies whether the slider is the first control in a
control group.
- handleDrawItem
- Specifies whether custom drawing is performed for the
slider. To process custom drawing requests, a handler
derived from ISliderDrawHandler must be added to the
container handlers list. Custom background drawing
is not supported for native Windows sliders.
- horizontal
- Specifies whether the slider is horizontal. This style is
mutually exclusive with the vertical style. Ensure
that only one of these styles is on, either
explicitly or by default.
- pmCompatible
- Specifies whether the slider has the look and feel of the
OS/2 Presentation Manager (PM) slider.
- on--the PM-compatible progress indicator
is used
- off--the native system progress indicator
is used
- ribbonStrip
- Specifies whether the slider shaft is colored between the
home position and the arm.
- saveBits
- Specifies whether the area under the window object is
saved as a bitmap to enable faster repainting.
- snapToTickMark
- Specifies whether the slider is positioned to the nearest
tick mark when it is moved between ticks.
- synchPaint
- Specifies whether the window object is painted
synchronously rather than waiting for other system events
to processed.
- tabStop
- Specifies whether the slider is a tab stop.
- vertical
- Specifies whether the slider is vertical. This style is
mutually exclusive with the horizontal style.
Ensure that only one of these styles is on, either
explicitly or by default.
- visible
- Specifies whether the slider is visible.
Working with ISlider
Parts
Editing Part Properties
Property Settings -- IVBMinSize
Property Settings -- IPoint
Property Settings -- ISize
Style Properties
Color Properties
Font Properties
Handler Properties
Size and Position Properties
Code Properties
ISlider
Portability -- ISlider
VisualAge User Interface Part
Properties