Dear LyX Developers, Thank you to everyone who provided suggestions. I finally managed to get it to work. For my own notes (and the wonderful list archives), here is a summary what was needed to use toggle-dialog:
1.) Create a DockWidget container that is similar to GuiToc, GuiProgressView, or GuiViewSource. ... GuiTestMod::GuiTestMod(GuiView & parent, Qt::DockWidgetArea area, Qt::WindowFlags flags) : DockView(parent, "testmod", qt_("Testmod"), area, flags), is_closing_(false) ... 2.) Add an entry to the "dialognames[]" structure: Char const * const dialognames[] = {"aboutlyx", "bibitem", ... "progress", "testmod"}; 3.) Define a createTestMod method in GuiView::build( ... ): ... Dialog *createGuiTestMod(GuiView & lv); ... if (name == "corkboard") return createGuiTestMod(*this); 4.) Add an entry to stdmenus.inc or stdtoolbars.inc so that it appears in the LyX UI: Item "Test Model Dialog" "dialog-toggle testmod" Again, thank you everyone for the help. Your comments saved me hours of poking, prodding and head scratching. Cheers, Rob