Process Analyst Control

Hello all,

I want do add a new button in toolbar of the Process Analyst Control.

I have been looking at help to sse how it was done but i dont know how to do: "If necessary, enter a new ID for the command. This ID can be used in Cicode to determine which command has been triggered or to find a specific command in the Citect SCADA system."

Can anyone help?

Thanks a lot

Parents
  • hello,

    I create a button like in the Citect Process Analyst Control:

    ID: CMD_InserirGrafico
    Tooltip: xpto
    ICON: xpto.ico
    Button: Enabled

    And create a function:

    FUNCTION Graficos_AN38_CommandExecuted(OBJECT hPA, STRING commandId)
    SELECT CASE commandId
    CASE "CMD_InserirGrafico"
    TrendSelectPenNovo(hPA);
    END SELECT
    END

    where Graficos_AN38 is the event Class.

    When i run the project and press the button it doesnt work. I put a break point in the function and it never stop there.

    Any tip?
Reply
  • hello,

    I create a button like in the Citect Process Analyst Control:

    ID: CMD_InserirGrafico
    Tooltip: xpto
    ICON: xpto.ico
    Button: Enabled

    And create a function:

    FUNCTION Graficos_AN38_CommandExecuted(OBJECT hPA, STRING commandId)
    SELECT CASE commandId
    CASE "CMD_InserirGrafico"
    TrendSelectPenNovo(hPA);
    END SELECT
    END

    where Graficos_AN38 is the event Class.

    When i run the project and press the button it doesnt work. I put a break point in the function and it never stop there.

    Any tip?
Children
No Data