lundi 13 octobre 2014

Responsive Plugin/Addin/Addon UI (Winforms)


Vote count:

0




I have a UI as an Addin (Parent Process: SolidWorks). I have several input pages and between the pages i want do the calculation. E.g.



  • Page 1: Select size and edges of a cube

  • Page 2: Select colors of each side


When clicking "Next" on Page 1 I want to start the creation of the cube. This happens in a background thread. The problem is, that the UI works as Addin in Solidworks and Solidworks does some calculations and therefore UI ist not responsive anymore (I want the user to select colors in the meantime). I thought about starting the UI in an own thread, but I am not sure if this is possible, because I have no access to the start process. I just call a function with the Winforms class:



mTaskpaneHost = (HostControl)mTaskpaneView.AddControl(HostControl.SWTASKPANE_PROGID, "");

// Class Constructor:
[ProgId(SWTASKPANE_PROGID)]
public partial class HostControl : UserControl
{


I am not sure how to handle this problem - can i somehow tell at the constructor, that the UI should be an extra thread or does it work to make UserControls and start them in own threads - or is there no hope?



asked 42 secs ago







Responsive Plugin/Addin/Addon UI (Winforms)

Aucun commentaire:

Enregistrer un commentaire