Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
SONY VEGAS: Sony Vegas TutorialsSony Vegas ForumArticlesBasics ForumBlack Magic Design ForumAJA Xena Forum

CustomCommand and DockableControl

Cow Forums : Sony Vegas
CustomCommand and DockableControl
by Piet Heyn on Jun 10, 2008 at 10:18:13 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

Respond to this post   •   Return to posts index

Re: CustomCommand and DockableControl
by Edward Troxel on Jun 10, 2008 at 2:32:06 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

Respond to this post   •   Return to posts index

Re: CustomCommand and DockableControl
by Piet Heyn on Jun 10, 2008 at 7:23:56 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.



Respond to this post   •   Return to posts index


Re: CustomCommand and DockableControl
by Edward Troxel on Jun 11, 2008 at 1:18:06 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

Respond to this post   •   Return to posts index

Re: CustomCommand and DockableControl
by Edward Troxel on Jun 11, 2008 at 1:19:12 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

Respond to this post   •   Return to posts index

Re: CustomCommand and DockableControl
by Piet Heyn on Jun 11, 2008 at 6:50:24 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?



Respond to this post   •   Return to posts index


Re: CustomCommand and DockableControl
by Piet Heyn on Jun 11, 2008 at 7:16:49 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



Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]