2 Replies Latest reply on Jul 6, 2014 6:07 AM by Vlad Shevchenko

    Element in one row

    Vlad Shevchenko

      Hi, I begin study SolidWorks API. I would like make simple Add-in application. I write this code:

       

       

                  controlType = (int)swPropertyManagerPageControlType_e.swControlType_Label;

                  align = (int) swPropertyManagerPageControlLeftAlign_e.swControlAlign_LeftEdge;

                  options = (int)swAddControlOptions_e.swControlOptions_Enabled |

                            (int)swAddControlOptions_e.swControlOptions_Visible;

       

                  label1 = (IPropertyManagerPageLabel)group1.AddControl(lable1ID, controlType, "Force", align, options, "Seting loads");

       

                  controlType = (int)swPropertyManagerPageControlType_e.swControlType_Textbox;

                  align = (int)swPropertyManagerPageControlLeftAlign_e.swControlAlign_LeftEdge;

                  options = (int)swAddControlOptions_e.swControlOptions_Enabled |

                            (int)swAddControlOptions_e.swControlOptions_Visible;

       

                  textbox1 = (IPropertyManagerPageTextbox)group1.AddControl(textbox1ID, controlType, "Force", align, options, "Seting loads");

                  textbox1.Text = "10";

       

      and have such result

      15.png

       

      How I can make that label and textbox were on the same line?

      Help me, please!