Inner Control Properties and Methods

The properties and methods of controls in the System.Windows.Controls namespace are accessible in the PowerBuilder .NET Script Editor through the PowerScript InnerControl property. These controls are the ancestors to all PowerBuilder .NET controls.

The IntelliSense feature in the PowerBuilder .NET Script Editor displays the list of properties, events, and functions of the ancestor Microsoft control when you enter script for the descendant PowerScript control's InnerControl property, followed by a dot.

The InnerControl property returns the actual datatype of the ancestor control. It is read-only, although you can use it to change properties or call methods on the ancestor control.

This example changes the value of the Content property of the ancestor to a PowerScript CommandButton control:
    cb_1.InnerControl.Content = "My Content"     

In PowerScript code, you cannot access the Content property on the CommandButton control itself, although you can enter a value for it in the Properties view. When you enter a value for Content in the Properties view, the value is available to the Text property for the CommandButton control, but only when the Text property is not already assigned.