PART FIVE - A DCAL FOR DELPHI PRIMER - _MACRO TEMPLATES & EXAMPLES
This Topic will provide macro templates configured for different common conditions. Each template library will be published as a separate reply in this posting along with specific units required. Note that Delphi and Datacad units included in the 'uses' declaration can are provided by Delphi and Datacad respectively. Each macro has been tested. Please report any anomalies you uncover.
Macro templates include
1. GetEsc Example. A simple macro with a single menu loop using the getesc() procedure to gain user input. This example includes an example of the callnone() procedure to notify thedispatcher of a non interface action in the EXECUTE STEP.
2. GetPnt Example. A simple macro with a single menu loop using getpoint() to read function keys and get points. It collects two points and draws a line. It also toggles several datarecord values and uses them to display menu titles and toggles which is useful if the macro changes thename of a menu item on the fly.
This Topic will provide macro templates configured for different common conditions. Each template library will be published as a separate reply in this posting along with specific units required. Note that Delphi and Datacad units included in the 'uses' declaration can are provided by Delphi and Datacad respectively. Each macro has been tested. Please report any anomalies you uncover.
Macro templates include
1. GetEsc Example. A simple macro with a single menu loop using the getesc() procedure to gain user input. This example includes an example of the callnone() procedure to notify thedispatcher of a non interface action in the EXECUTE STEP.
2. GetPnt Example. A simple macro with a single menu loop using getpoint() to read function keys and get points. It collects two points and draws a line. It also toggles several datarecord values and uses them to display menu titles and toggles which is useful if the macro changes thename of a menu item on the fly.
Last edited by Jsosnowski on Tue Dec 26, 2017 3:09 pm, edited 3 times in total.
Joe
User since V2.4
User since V2.4