IncrementorPicture Property (ASlider)

Returns or sets the Picture object to be displayed as the incrementor custom picture on the object.

Syntax

Object.IncrementorPicture [ = picIncrementorPicture ]

The IncrementorPicture property syntax has the following parts:

 

Name

Type

Description

Object

ASlider

ASlider control

picIncrementorPicture

 APicture

A string expression specifying a file containing a graphic.

Comments

At design time: A graphic can be loaded with the Clipboard Copy, Cut, and Paste commands. When setting the IncrementorPicture property, the graphic is saved and loaded with the form. If an executable file is created, the file contains the image.

At run time: A graphic can be loaded using the Clipboard methods such as GetData, SetData, and GetFormat with the nontext Clipboard constants ACFBitmap, ACFMetafile, and ACFDIB, which are listed in the object library in the Object Browser. When a graphic is loaded at run time, the graphic is not saved with the application. Use the SavePicture statement to save a graphic from a form or picture box into a file.

Note: At run time, the IncrementorPicture property can be set to any other object's DragIcon, Icon, Image, or Picture property, or the graphic can be assigned by the return of the LoadPicture function. The exception to this is the Picture property of the ListImages object, which is a read-only property.

A picture can also be used as the background with text over it for some attractive combinations.

Example

The following statement changes the ASlider's IncrementorPicture to a given image file:

sld1.IncrementorPicture = LoadPicture ("c:\dirname\filename.bmp")

Applies to

ASlider

See Also

DecrementorPicture, IncrementorColor, IncrementorHeight, IncrementorLeft, IncrementorTop, IncrementorWidth, IncrementorWidth, ThumbPicture