RobotStudio event

RS 5.11 API - popup window implementation

Hello!

I'd like to know how to use a kind of popup window in RobotStudio in order to make my VSTA scripts more universal.

I wrote a script that loads a detail (library) and places it relatively from specified workobject. Generally it works fine but I'd to set all properties (like displacement matrix and selected wobj) in a popup window similar to the Set Position Window. Is it posible to make it using only public RS API? Are there some examples or tutorials of such a "popup window"?

The functionality of my application is bad 'cause not everybody knows how to edit VSTA scripts. I'd like to make some kind of closed application which can be used by anyone who uses RS.

thanks for any help!

Ps. I've heard about avalibility extended RS API for people outside the RS Development Team - can anyone provide me with some details?

Wojciech Wlodarski
PLABB

Comments

  • Hi,

    Here is a little example for a docked window.

    ToolWindow tw = new ToolWindow("SOME_UNIQUE_ID");
    tw.Caption = "MyWindowCaption";


    // replace Form with your GUI
    Form form = new Form();
    form.Width = 250;
    tw.Control = form;
               
    UIEnvironment.Windows.AddDocked(tw, System.Windows.Forms.DockStyle.Right);


    regards