Externally Accessing Objects of an ElipseX

<< Click to Display Table of Contents >>

 

Externally Accessing Objects of an ElipseX

An ElipseX object can only be accessed externally via its properties, by using its created instances. Users cannot access internal objects directly.

If an ElipseX is an XControl, it behaves as a Screen object. For example, consider the application on the next figure.

Example of XControl

Example of XControl

To change XControl's Property1 property, users can write the next script on a Command Button's Click event.

Sub CommandButton1_Click()
  Screen.Item("XControl11").Property1 = True
End Sub

 

Or else execute the next script on a Command Button's Click event.

Sub CommandButton1_Click()
  Parent.Item("XControl11").Property1 = True
End Sub

 

In case of an XFolder or XObject, users must insert it on a Data Server, according to the example on the next figure.

Example of XObject

Example of XObject

To change the XObject's Value property, use the next script.

Sub CommandButton1_Click()
  Application.GetObject("Data.XObject11").Value = 123
End Sub

 

Or else the next script.

Sub CommandButton1_Click()
  Application.GetObject("Data").Item("XObject11").Value = 123
End Sub

 

Users can also have an XControl accessing an XFolder or XObject through an XProperty. For example, the next figure shows an XControl called XControl1 with an XValue property. This property's type is XObject1, which is also the name of the XObject created.

XObject

XObject

XControl

XControl

For example, users can link the value of object Text1 with XObject1's Value property. This is performed via XValue property, created in XControl1. Thus, the value of XObject1's Value property is displayed in object Text1 of XControl1.

Value property

Value property

In this project, the link of an XObject11 instance can be linked to an XControl11 instance using a Link in the XValue property.

Link to the XValue Property

Link to the XValue Property

Was this page useful?