OLE control properties are the primary means of interacting with OLE controls. Properties, much like OI control properties, describe the persistent attributes of the control, that is, attributes having some meaningful value for the entire life of the control. Like OI control properties, OLE control properties are manipulated using the Get_Property and Set_Property routines. The following properties apply to the SRP Picture Control:

PropertyDescriptionVersion Introduced
AlignmentThe image alignment within the control's bounds. 
AnimatedWhether or not the image is automatically animated. 
AnimationDelayThe number of milliseconds between frame changes. 
AutoLoadDropFileDetermines whether or not image files from a drag and drop operation automatically load. 
BackgroundColorThe control's background color. 
BorderAlignmentThe control's border alignment. 
BorderThe control's border style.3.1.0
BorderColorsCustomizes the colors of an SRP ActiveX Control's border.3.1.0
BorderTypeDeprecated. Use Border insteadDeprecated
CaptionThe text displayed when there is no image or control part. 
CaptionAlignmentThe caption alignment within the control's bounds. 
CaptionColorThe color used to render the Caption. 
CaptionOffsetThe caption offset within the control's bounds. 
ControlPartSets the control's image to a dynamically sized control part. 
FontThe font used to render the Caption. 
FrameThe index of the currently displayed image frame. 
FrameCountThe number of frames into which the control's image is divided. 
ImageThe path to the image displayed in the control. 
ImageOffsetThe image offset within the control's bounds. 
ImageSizeThe size of the image in pixels. 
LayoutThe sizing behavior of the control's image. 
OmniPropertyA single property for setting multiple control properties at once. 
ProgIDThe control's ProgId/Class Name. 
ResizeUsingGDIPlusDetermines if GDIPlus is used to resize image. 
ScrollPosThe scrollbar positions. 
TransparentColorThe color not to be drawn in the control's image. 
VersionThe control's version info. 
ZoomThe zoom level of the picture. 
  • No labels