Hello,
I am working now on an HMI and I have the following problem.
In the reason of to secure the users safety I used a GTPUMessageBox to inform the user before the robot start to move.
My code:
GTPUMessageBox.Show(this.Parent, new MessageBoxEventHandler(RobotMove), “Robot will move - acknoledge with YES”, “Security”, System.Windows.Forms.MessageBoxIcon.Question, System.Windows.Forms.MessageBoxButtons.YesNo);
My Eventhandler checks the answer:
public void RobotMove(object sender, ABB.Robotics.Tps.Windows.Forms.MessageBoxEventArgs e)
{
if (e.DialogResult == System.Windows.Forms.DialogResult.Yes)
{
//Call Routine
}
}
And now to my problem:
If I press the button for moving the robot I the MsgBox will be shown correctly. I press Yes
and the robot starts to move. During the movement approx. after 1 second the MsgBox will be shown again. The MsgBox will be shown everytime 2 times.
Hopefully somebody will be able to help me in this case.