I would like to show a message box containing buttons with custom text (not OK, Cancel, Yes, No). This is possible with some of the overloaded methods of GTPUMessageBox.Show, but I don’t know how to handle the click event of the custom buttons.
Can anyone show me how to do it? Some code snippets, maybe?
Finally I found the way to make it work… I will post some sample code in case it can be of use to anyone else:
GTPUMessageBox.Show(this, new MessageBoxEventHandler(HandleSelectionResult), “Please chose A or B:”, “Select option”, ABB.Robotics.Tps.Drawing.TpsIcon.Info, new string {“A”, “B”});