Returns or sets the Picture object to be displayed as the incrementor custom picture on the object.
Object.IncrementorPicture [ = picIncrementorPicture ]
The IncrementorPicture property syntax has the following parts:
Name |
Type |
Description |
Object |
ASlider |
ASlider control |
picIncrementorPicture |
A string expression specifying a file containing a graphic. |
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.
The following statement changes the ASlider's IncrementorPicture to a given image file:
sld1.IncrementorPicture = LoadPicture ("c:\dirname\filename.bmp")
DecrementorPicture, IncrementorColor, IncrementorHeight, IncrementorLeft, IncrementorTop, IncrementorWidth, IncrementorWidth, ThumbPicture