Get ToolControlBase.Apply event

Hello,
I want to update my SmartComponent (who read RapidData) when I apply modification.
I see that a ToolControlBase.Apply exists, but I can't find where this is declared as this is not static.


Comments

  • DenisFRDenisFR FRANCE ✭✭
    Hello,
    I've found how should to do, but this doesn't work:
    using ABB.Robotics.RobotStudio.Environment;
    ...
    public override void OnLoad(SmartComponent component)
    {
    base.OnLoad(component);
    //Connect to Apply Button
    CommandBarControl commandBarControl = UIEnvironment.RibbonTabs["RAPID"].Groups["Controller"].Controls["RapidApplyMenu"];
    if (commandBarControl!=null)
    {
    ((CommandBarPopup)commandBarControl).ClickButton.ExecuteCommand += ClickButton_ExecuteCommand;
    ((CommandBarButton)((CommandBarPopup)commandBarControl).Controls["RapidApplyAll"]).ExecuteCommand += ClickButton_ExecuteCommand;
    ((CommandBarButton)((CommandBarPopup)commandBarControl).Controls["RapidModuleApply"]).ExecuteCommand += ClickButton_ExecuteCommand;
    }
    string s = "";
    }

    private void ClickButton_ExecuteCommand(object sender, ExecuteCommandEventArgs e)
    {
    throw new NotImplementedException();
    }

    ClickButton_ExecuteCommand is never called...

    Does RobotStudio.UI.Rapid.EditorManagement{Void ApplyAll_ExecuteCommand(System.Object, ABB.Robotics.RobotStudio.Environment.ExecuteCommandEventArgs)} raise event?




  • DenisFRDenisFR FRANCE ✭✭
Sign In or Register to comment.