Message 1 of 2
Dockbel windows how to I add buttom to run Ilogic code ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using a VBA for today to run some Ilogic code . but my users would I a dockbel version. I have fund this code that create a windows that work like I wanted it to... but how do I add buttom to it ? can I move my VBA form in to it so I do not have to create it form buttom up ?
the code I have is this
Dim oUserInterfaceMgr As UserInterfaceManager
oUserInterfaceMgr = ThisApplication.UserInterfaceManager
' Create a new dockable window
Dim oWindow As DockableWindow
oWindow = oUserInterfaceMgr.DockableWindows.Add("SampleClientId4", "TestWindowInternalName4", "Test Window4")
' Get the hwnd of the dialog to be added as a child
' CHANGE THIS VALUE!
Dim hwnd As Long
hwnd = 4851096
' Add the dialog as a child to the dockable window
oWindow.AddChild(hwnd)' Her I would Like To add a UserControl Or Userfrom!!!!!
' Don't allow docking to top and bottom
oWindow.DisabledDockingStates = DockingStateEnum.kDockTop And DockingStateEnum.kDockBottom
' Make the window visible
oWindow.Visible = True