Like other widgets, you can add a PxInclude to the Px Editor canvas in several ways, including the following:
- Drag (or cut and paste) the widget from a palette
This method simply drops a widget onto the Px Editor canvas, adding the widget to the current Px file. After adding the widget
to the Px canvas, you must edit the ord property to add the desired Px file.
- Drag (or cut and paste) a Px file from the Nav tree
This method adds a PxInclude widget to the current Px file with a Px file already connected to the PxInclude ord property.
- Drag (or cut and paste) a component from the Nav tree
This initiates the Make Widget Wizard. This method allows you to use the Make Widget Wizard to select the desired Px file and choose which variables to bind.
NOTE: Only the ord variables that are selected in the bottom left window of the Make Widget Wizard are available for configuring after the PxInclude file is imported.
NOTE: For the Px file that you are including, you probably want to remove the root scroll pane that comes with the default Px file.
Just use a canvas pane as the root. The scroll pane has a property called border policy, which is set to 'always' by default.
This border is visible when the include is viewed in its parent Px file.
Figure 66. Remove the scroll pane from a Px Include to avoid displaying a border
When you complete the Make Widget Wizard, you may have the PxInclude widget configured fully, or edit it further, if needed.