Copyright © 1998-2015 MultiMedia Soft

PicturePosition property

Previous pageReturn to chapter overviewNext page

Type

long for Visual C++

enumPicturePositions for Visual Basic

 

 

Syntax

object.PicturePosition   [=enumPicturePositions]

 

 

Remarks

Changes the picture or animation position over the control.

Supported values are the following:

Mnemonic constant

Value

Meaning

PICTPOS_CM

0 (default)

Center (Horizontal) Middle (Vertical)

PICTPOS_LT

1

Left (Horizontal) Top (Vertical)

PICTPOS_CT

2

Center (Horizontal) Top (Vertical)

PICTPOS_RT

3

Right (Horizontal) Top (Vertical)

PICTPOS_LM

4

Left (Horizontal) Middle (Vertical)

PICTPOS_RM

5

Right (Horizontal) Middle (Vertical)

PICTPOS_LB

6

Left (Horizontal) Bottom (Vertical)

PICTPOS_CB

7

Center (Horizontal) Bottom (Vertical)

PICTPOS_RB

8

Right (Horizontal) Bottom (Vertical)

PICTPOS_TILE

9

Tiles the picture to fit the button.

PICTPOS_STRETCH

10

Stretches the picture to fit the button.

PICTPOS_SIZETOCONTENT

11

Resizes the control to fit the button. This setting is available only when the Style property is set to STYLE_PICTURE.

After the resize has been performed, the PicturePosition property value is set automatically to PICTPOS_LT.