UDOPicture

<< Click to Display Table of Contents >>

Navigation:  UDO - User Defined Objects >

UDOPicture

Previous pageReturn to chapter overviewNext page

[Professional Edition and above, ActiveX only]

This property is only accessible while you are processing the event DoUDOPaint() (VCL: OnUDOPaint(), .NET: UDOPaint()). Accessing this porperty while not processing the event will return invalid - and therefore useless - data.

property IPictureDisp VPE.UDOPicture

write; runtime only

Possible Values:

Picture datatype offered by OLE / COM objects (of type IPictureDisp)

Example:

ActiveX - Painting an OLE Object with UDO (example in Visual Basic):

First, insert an OLE Control named OLE1 into a form. For example a Microsoft Excel Spreadsheet or a Corel Draw object.

 

Then enter the following code:

Private Sub Form_Load()

 rem Make sure, the server application is running by executing the

 rem following code:

 OLE1.DoVerb (vbOLEShow)

 OLE1.Visible = False

 

 Doc.OpenDoc

 Call Doc.CreateUDO(1, 1, -18, -18, 1)

 Call Doc.Preview

End Sub

 

Private Sub Doc_DoUDOPaint ()

 If Doc.UDOlParam = 1 Then

         Doc.UDOPicture = OLE1.Picture

 End If

End Sub