Dockable Windows - OnClose Event?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I can successfully create a dockable window (browser), which then displays my user form correctly using similar code to this
Dim oUserInterfaceMgr As UserInterfaceManager
oUserInterfaceMgr = m_inventorApplication.UserInterfaceManager
oWindow = Nothing
Try
oWindow = oUserInterfaceMgr.DockableWindows.Add(m_ClientId, "String1", "String2")
Catch
oWindow = oUserInterfaceMgr.DockableWindows.Item("String1")
End Try
oWindow.AddChild(oForm.Handle)
oWindow.DisabledDockingStates = DockingStateEnum.kDockTop + DockingStateEnum.kDockBottom
oWindow.DockingState = DockingStateEnum.kDockLeft
oWindow.SetMinimumSize(oWindow_Height, oWindow_Width)
oWindow.Visible = True
However, if I close the dockable window in Inventor and reopen it, it still displays the form with its current settings, rather than the original base form. The form seems to be still open, even if the window is not
How do I send a signal to my form to fully close when the user clicks the dockable windows 'X' button?
In essence, is there an onclose event for dockable windows
Regards
MattH
MattH
Product Design Collection 2026
Vault Pro 2026