Desktop and UI Extensibility

Get Involved. Join the Conversation.

Topic

    Blake Hines
    Setting Size for Workspace AddinAnswered
    Topic posted May 7, 2010 by Blake HinesRed Ribbon: 250+ Points, last edited October 29, 2011 
    1310 Views, 5 Comments
    Title:
    Setting Size for Workspace Addin
    Content:

    I have created a IWorkspaceComponent2 and I have added it to the Contact workspace and everything seems to be working well except the size of the component.

    It is a user control that is sized at about 110x23 with a button inside of it sized at about 110x23.

    When I add it to the contact workspace I highlight the control go into the Design ribbon and use the size button.  I have "Enable Auto sizing" unchecked and then I set the size to 110x23.

    Then it might temporarily work, but it always seems to go back to 75x23 (which seems to be the default size of buttons in windows forms).

    Am I missing something here?

    Thanks in advance,

    Blake

    Best Comment

    Blake Hines

    I figured it out.

    I was setting the width for the button and the user control that housed the button; however,

    I was not setting the width for the Workspace addin itself.  Therefore it was set at the default rate which is 75.

    Comment

     

    • Chris Omland

      What version are you using?

    • Blake Hines

      RightNow Cx February 10

       

    • Blake Hines

      I figured it out.

      I was setting the width for the button and the user control that housed the button; however,

      I was not setting the width for the Workspace addin itself.  Therefore it was set at the default rate which is 75.

    • Peter Flies

      I don't see a size (or height or width) setting on the Add-In class IWorkspaceComponent2. Is there a way to set the height or width of the Add-In itself? I'm having the same issue but can't find a way to resolve it as mentioned in the solution above.

      EDIT: Never mind. I see the size parameters in the workspace editor. On the Design tab. 

    • Marissa Gonzales

      Does anyone know why my size option under Object Tools/Deign Layout Tab is grayed out?  I am trying to increase the size of the table to fit all my mandatory fields.

      (i attached a screen shot)

      thanks!