ObjectDCL Banner

AxObject_SetPictureProperty Method

Description

This method sets a property to a control.

Parameters

MyOleObject
OleObject to the ActiveX object.
PropertyName
String identifying the property by name.
FileName
String identifying the path to the picture.
PictureID
Picture specifying the picture from the project folder.

Return Values

Returns the following according to the situation:

  • T when successful.
  • Nil if the object is not found, the property does not exist or the property is read-only.

AutoLISP Syntax

CopyCode imageCopy Code
(Odcl_AxObject_SetPictureProperty 
		MyOleObject [as OleObject]
		PropertyName [as String]
		PictureID [as Picture])

Remarks

See the property of interest to know what string to pass.

Not all properties can be set.

Applies For

ActiveX.

Example

CopyCode imageCopy Code
; Get the ActiveX object
(Setq rObject (Odcl_AxControl_GetOleObject MyProject_MyForm_MyControl))
		
; Change the property
(Odcl_AxObject_SetPictureProperty rObject "SomeProperty" "Picture.bmp")

; Release the handle to the ActiveX
(Odcl_AxObject_Close rObject)

See Also

AxObject_GetProperty