-
Basic CustomCommand DLL main window design question
I’m new at designing Vegas custom command DLLs, and there are essentially zero examples available showing how to do it. So I may have taken the wrong approach in my design.
My UI design is laid out on my own UserControl. This is added to the DockableControl at creation time in the OnLoad Event. This approach works well, but I’m experiencing missing and un-routed Key Events that UserControl’s are known for.
The Vegas DockableControl class is derived from a Windows.Forms UserControl. So then I thought “OK, I’ll just use the Vegas DockableControl directly as my host window. Maybe they handle the Key event issues in their subclassed version of a UserControl” But I found out I can’t display a DockableControl derived class in the Visual Studio designer because the public constructor in not accessible.
So, what is the preferred way of laying out the UI of a custom command dll in the Visual Studio designer? Is it to create my own UI Control and add it to the Vegas DockableControl, like what I’ve already done? Or use the DockableControl directly and use some black magic to view it in the Visual Studio designer?
Thanks,
Gary …