Macro

How do I group button like shown in the image below in my macro file?

KILL _COM.CPOSXX
SETUP FORM _COM.CPOSXX RESIZE AT XR0 YR0.055 SIZE 15 5
ONERROR CONTINUE


TITLE | ECS TOOLBAR |
HDIST 0
BUTTON _X1  |ATT | CALL |Q ATT| at x0y0
BUTTON _X2  |REF | CALL |Q CATREF| at x6y0
BUTTON _X3  |CUTL| CALL |Q CUTL| at x0y1
BUTTON _X4  |JUST| CALL |Q JUS| at x6y1
BUTTON _X5  |MEML| CALL |Q MEML| at x0Y2
BUTTON _X6  |POS | CALL |Q POS WRT/*| at at x6Y2
BUTTON _X7  |AX  | CALL |AXES AT CE|AT X0Y3
BUTTON _X8  |AXOF| CALL |AXES OFF| at at x6Y3

BUTTON _X9  |0    | CALL |Bangle 0| AT X15Y0
BUTTON _X10 |90   | CALL |Bangle 90| AT X22Y0
BUTTON _X11 |-90  | CALL |Bangle -90| AT X15Y1
BUTTON _X12 |180  | CALL |Bangle 180| AT X22Y1
BUTTON _X13 |-180 | CALL |Bangle -180| AT X15Y2
BUTTON _X14 |R| CALL |ENHANCE CE COL RED| AT X15Y3
BUTTON _X15 |G| CALL |ENHANCE CE COL GREEN| AT X18Y3
BUTTON _X16 |B| CALL |ENHANCE CE COL BLUE| AT X21Y3
BUTTON _X31 |Y| CALL |ENHANCE CE COL YELLOW| AT X24Y3

BUTTON _X17 |BOX | CALL |NEW BOX| AT X32Y0
BUTTON _X18 |NBOX| CALL |NEW NBOX| AT X38Y0
BUTTON _X19 |CYL | CALL |NEW CYL| AT X32Y1
BUTTON _X20 |NCYL| CALL |NEW NCYL| AT X38Y1
BUTTON _X21 |STRU| CALL |NEW STRU| AT X32Y2
BUTTON _X22 |SUBS| CALL |NEW SUBS| AT X38Y2
BUTTON _X23 |FRMW| CALL |NEW FRMW| AT X32Y3
BUTTON _X24 |SBFR| CALL |NEW SBFR| AT X38Y3
BUTTON _X25 |FITT| CALL |NEW FITT| AT X32Y4
BUTTON _X26 |TPML| CALL |NEW TMPL| AT X38Y4

BUTTON _X27 |ADD | CALL |ADD CE| at x0y5
BUTTON _X28 |REM | CALL |REM CE|
BUTTON _X29 |REM A| CALL |REM ALL|
BUTTON _X30 |REM A ADD| CALL |REM ALL ADD CE|
BUTTON _X32 |ADD 1000| CALL |ADD ALL WITHIN VOL CE 1000|


EXIT
SHOW _COM.CPOSXX

$.

Parents Reply
  • Hello again,
    For OPTION gadgets and COMBO gadgets, the callback is not assigned to the gadget on the form setup part of the pmlform. It is set on the form constructor method.
    Below is the example from the AVEVA Manual TM-1881 AVEVA Everything3D PML Form Design


    I highly suggest to fully read the AVEVA Manual TM-1881 AVEVA Everything3D PML Form Design as there are sample codes there.
    If your company does not have a copy of this manual, please contact your AVEVA Account Manager / Sales Representative if they can provide a copy. 
    For the complete documentation reference for PML, please refer to the AVEVA Online Help, especially the Object Type Details section.

Children