- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
The UserForm or UserControl becomes to large in the Dockable window and the bottons are out of the field, you understand?I need to take a look at the Anchors!!! @marcin_otręba
Yes i understand! also it would be nice if you could attach some scren showing your situation.
I always try to design my forms in size wchich they will appear. Also content should be achored to side in wchich dockable window will be docked.
At what moment do you add the oForm to the DockableWindow?
I have it is couple of my addins and it is added :
1. on custom button click
2. as i showed in my first answer - on addtouserinterface:
Private Sub AddToUserInterface()
Dim addInCLS As GuidAttribute
addInCLS = CType(System.Attribute.GetCustomAttribute(GetType(StandardAddInServer), GetType(GuidAttribute)), GuidAttribute)
addInCLSIDString = "{" & addInCLS.Value & "}"
Dim uiMgr As UserInterfaceManager = g_inventorApplication.UserInterfaceManager
Dim myDockableWindow As DockableWindow = uiMgr.DockableWindows.Add(addInCLSIDString, "MyWindow", "My Add-in Dock")
myDockableWindow.Visible = True
myDockableWindow.DockingState = DockingStateEnum.kDockRight
myDockableWindow.AddChild(CreateChildDialog())
myDockableWindow.DockingState = DockingStateEnum.kDockRight
myDockableWindow.Visible = True
End Sub3.on assembly doc activate.
Can't get this to work since I cannot update the created form on activate document! - what do you mean?
if you dont want to shear on forum you can write me message or something, also if you could describe what you want to acomplish, i think i have alot of experience with dockable windows and i propably did it already. I use them almost on all possible document events.