Navigation: Ultimate Suite for PowerBuilder Help > PowerDock >

Implementation

Send comments on this topic.

 

Place u_cst_powerdock from advguicontrols.pbl\pbd on your MDI frame window.

Note: Any window that you open in PowerDock should start off as being invisible. Please uncheck the Visible property in the IDE for all windows that will be opened in PowerDock. Also, I found better success when the window I was opening was of type child.

IMPORTANT:

If you use PowerDock on an MDI! or MDI_Help! window and need sheet support (e.g. changing sheet menu's), you will need to make two extra function calls at the version beginning of your frame windows Open event:

uo_powerdock.of_SetMDI(MDI_1)
uo_powerdock.of_DisplayMDIAsTDI()


Resize Event:

//Manually size the control in the MDI frame window
uo_PowerDock.Resize(THIS.WorkSpaceWidth() - 8, THIS.WorkSpaceHeight() - MDI_1.MicroHelpHeight - uo_toolbarstrip.Height + 4)    

Open Event:

 //Set the menu that will display all open documents (and the "More Windows" window if needed)
uo_PowerDock.of_SetMenu(m_main.m_window)

//Open documents in the new container
uo_PowerDock.of_OpenDocument(iuo_5, "About"'Help!')
uo_PowerDock.of_OpenDocument(iw_windowtest, "My Window"'Window!')

//Activate a document
uo_PowerDock.of_ActivateDocument(iuo_5)

//Add items to the dock windows
uo_PowerDock.of_AddDockItem(uo_PowerDock.RIGHT, uo_mle1, "My Right Pane"'ListBox!')
uo_PowerDock.of_AddDockItem(uo_PowerDock.LEFT, uo_xplistbar, "XPListBar"'TreeView!')
uo_PowerDock.of_AddDockItem(uo_PowerDock.BOTTOM, uo_mle3, "Output"'ListBox!')
uo_PowerDock.of_AddDockItem(uo_PowerDock.TOP, uo_mle5, "Top Pane"'ListBox!')

//Set focus to specific dock items
uo_PowerDock.of_SetDockItemFocus(uo_xplistbar)

//Auto dock the left dock window
uo_PowerDock.of_SetDock(uo_PowerDock.LEFT, TRUE)

//Set some initial sizes
uo_PowerDock.of_SetDockSize(uo_PowerDock.LEFT, 875)
uo_PowerDock.of_SetDockSize(uo_PowerDock.RIGHT, 875)
uo_PowerDock.of_SetDockSize(uo_PowerDock.TOP, 500)
uo_PowerDock.of_SetDockSize(uo_PowerDock.BOTTOM, 500)


Copyright © 2023 Werysoft Inc.