LMD DockingPack Guide


Using Dock Panel Control


The Zone and Site properties refer to parent site and its corresponding zone, if any.

 

The Caption, Images and ImageIndex properties allows specifying main visual parameters of the panel. The site use caption and image to draw panel headers and tabs.

 

The PanelVisible property should be used instead of standard Visible property to set the panel visible. This is analogous to TTabSheet.TabVisible property. Setting the PanelVisible to False will hide the panel from its dock site. The panel will remain docked in the site, so later setting the property value back to True will show the panel at the old position (in the old zone).

 
Note that if the panel is floating panel (resides in the floating window) then setting the PanelVisible property to False will hide the window. Since the floating window can contain more then one panel, the precise rule is: the floating window becomes hidden when all residing into it panels have PanelVisible = False.

 
Note also that using standard Show method is more advantageous then setting PanelVisible to True, as was described above.

 

The other customization properties are ShowHeader, BorderStyle, Buttons and ShowHeaderImage.

 

The HeaderMenu property allows to specify the popup menu that will popup on right click on the panel’s header or click the menu header button.