Message 1 of 5
Dockable window width not working??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I’m trying to create my own AddIn, well I already made it 😄 but I’m having some trouble. I use a dockable window, but the width property is not adjusting well. In visual studio the width is set correct but at runtime my dockable window is a lot wider than I want it to be. How can is solve this problem?
I tried setting the width with the code below, but this has no effect..
Private DDCbrowser As DockableWindow
Private DDC As DocumentDisplayControls ' User Control class
Private Sub CreateDockableWindow()
' Set reference to the user interface manager
Dim oUserInterfaceMgr As UserInterfaceManager
oUserInterfaceMgr = m_inventorApplication.UserInterfaceManager
' Create a new dockable window
DDCbrowser = oUserInterfaceMgr.DockableWindows.Add("SampleClientId", "DDCIntName", "Ellimetal DDC")
DDC = New DocumentDisplayControls
DDCbrowser.AddChild(DDC.Handle)
' Dock the window to the right
DDCbrowser.DockingState = DockingStateEnum.kDockRight
' Show the title bar
DDCbrowser.ShowTitleBar = True
DDCbrowser.Width = 20
' Set the dockable window visible
DDCbrowser.Visible = True
End Sub
Please kudo if this post was helpfull
Please accept as solution if your problem was solved
Inventor 2014 SP2