# Program Editor

> Source: https://manual.pvxplus.com/nomads-graphical-application/program-interaction/events-logic/program-editor

The PxPlus graphical program editors, [\*IT - Integrated Toolkit](https://manual.pvxplus.com/toolkit1/overview) and **[Ed+](https://manual.pvxplus.com/ed-program-editor)**, are fully integrated with the **[Panel Designer](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/introduction)** for composing and modifying **[Events Logic](https://manual.pvxplus.com/nomads-graphical-application/program-interaction/events-logic/overview)**. The default program editor is the \*IT - Integrated Toolkit. To make Ed+ the default program editor, change the setting for the **[%NOMADS'Program_Editor](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#programeditor)** property to *Ed+*.

*(The ability to set Ed+ as the default program editor was added in PxPlus 2023.)*

Click the Program Logic button beside the *Perform* or *Call* actions to edit the specified event-handling program *"program;label".*

If both *program **and** label* exist, the cursor in the program editor window will be positioned automatically at the specified *label* so that you can begin editing at that location in the *program*.

If the *program* does not exist, it will be created for you as the program editor is launched.

If the specified *label* does not exist, new **LABEL** and **RETURN** statements will be placed at the bottom of the existing *program* for you.

## Label Types

Depending on the criteria for the panel or control logic, the following naming conventions are applied to create the specified label within the program editor:

| **Label** | **Panel or Control Logic** |
| --- | --- |
| PREDISPLAY\_*panel* | *Panels*, Pre-Display |
| POSTDISPLAY\_*panel* | *Panels*, Post-Display |
| ONEXIT\_*panel* | *Panels*, On Exit |
| INITIALIZE\_*control* | *All controls*, Post Create *(or* Prior Create *for Button*) |
| FOCUS\_*control* | *All controls*, On Focus |
| PROCESS\_*control* | *All controls*, On Change |
| VALIDATE\_*control* | Multi-Line Validator logic |
| FORMAT\_*control* | Multi-Line Formatter logic |
| BACKGROUND\_*control* | List Box *and* Grid, Background Loading |
| DEMAND\_*control* | List Box, Load on Demand |
| CELL_FOCUS\_*control*C*n*R*n* | Grid, On Focus *for cell (column/row)* |
| CELL_CHANGE\_*control*C*n*R*n* | Grid, On Change *for cell (column/row)* |
| CELL_VALIDATOR\_*control*C*n*R*n* | Grid, Validator logic *for cell (column/row)* |
| CELL_FORMATTER\_*control*C*n*R*n* | Grid, Formatter logic *for cell (column/row)* |
| PRELOAD\_*control* | *Smart Controls*, Pre-Load |
| POSTLOAD\_*control* | *Smart Controls*, Post-Load |
| *eventname_control* | External control event name |

***Where:***

|  |  |
| --- | --- |
| *control* | Control name |
| *panel* | Panel name |
| C*n*R*n* | Cell column number or name and row number |
| *eventname* | Event name (See **[Defining an External Control](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/com-control/com-control#definingCOM)** for information on defining events for an external control.) |
