Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › VEGAS Pro › CustomCommand and DockableControl

  • CustomCommand and DockableControl

    Posted by Piet Heyn on June 10, 2008 at 10:18 am

    Hello,

    I followed the example in the Vegas Pro Scripting FAQ to make a custom command as a dockable control.

    Everything works well but I was wondering how I could make the window dock the moment you open it from the menu. As it is now the window will start out as undocked and then I have to dock it myself.

    thanks for you time,

    Piet

    Piet Heyn replied 18 years, 3 months ago 2 Members · 6 Replies
  • 6 Replies
  • Edward Troxel

    June 10, 2008 at 2:32 pm

    Mine have always started docked in the Explorer/Project Media/Transitions/Effects/etc… windows. Do you have this code:

    public override DockWindowStyle DefaultDockWindowStyle
    {
    get { return DockWindowStyle.Docked; }
    }

    Edward Troxel
    JETDV Scripts

  • Piet Heyn

    June 10, 2008 at 7:23 pm

    Hello Edward,

    Thanks for your answer. I added dockView.DefaultDockWindowStyle = DockWindowStyle.Docked; and now the control is docked. Thanks a lot!

    Do you happen to know how I can make the docked window appear at a certain position in the Explorer/Project Media/Transitions/Effects/etc window (what is that window called actually?). I now always appears as the first tab.

  • Edward Troxel

    June 11, 2008 at 1:18 pm

    When you first start it, it will appear as the first tab.

    If it auto starts when Vegas is restarted, it will then appear as the LAST tab (unless there are also other Custom Commands being loaded automatically at which time it will be ONE of the last tabs)

    Edward Troxel
    JETDV Scripts

  • Edward Troxel

    June 11, 2008 at 1:19 pm

    When you first start it, it will appear as the first tab.

    If it auto starts when Vegas is restarted, it will then appear as the LAST tab (unless there are also other Custom Commands being loaded automatically at which time it will be ONE of the last tabs)

    Edward Troxel
    JETDV Scripts

  • Piet Heyn

    June 11, 2008 at 6:50 pm

    But my control is not automatically started, I have to open it from the menu everytime I start Vegas. How can I make it autostart as you said?

  • Piet Heyn

    June 11, 2008 at 7:16 pm

    Ok, I think the autostart problem is fixed now. I added AutoLoadCommand to the DockableControl initialisation and now the control is there again when I restart Vegas.

    Thanks a lot for your help Edward.

    regards,

    Piet

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy