C# - Second Application |
[Top] [Chapter] [Previous] [Next] |
Our second application developed in C# should test all available wpa action names.
We need a form with 3 elements:
Now we add an event handler for the VisibleChanged event of the form. In this event handler we first select the editor mode for the editor and load the layout (PCC file).
Then we initialize the listbox by adding the names and captions of all available wpaActions.
Now we only need one line of code to be attached to the button:
private void button1_Click(object sender, System.EventArgs e) { WPDLLInt1.Memo.wpaExec(listBox1.SelectedIndex, ""); }
Now you can start the application, select one of the action entries and click on the execute button.
(Note: Some of the actions are not used at present time, some can be only used when used by drop down combos in the toolbar. Please see the WPA-Name List.)
|