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.
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.
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)
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)
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.