I am trying to arrange the following within a TabPageControl (at design time).
1) A toolBar at the top of the control
2) a panel underneat to locate a few other controls
3)Below that a grid
4) Below that a Tab control
I want a horizontal split between 3) and 4) so that the user can adjust the relaytive sizes.
I have looked at the documentation on the dockManager and on the online help, but I must confess to being still unable to achieve this.
If I try to dock thins at the top they end above the toolbar. I can't find any samples of the use of the dock Manager.
I know th edock manager 'makes it easier' , but I find it totally beyond my comprehension.
Here's how I would probably accomplish this:
I would create a UserControl which has a SplitContainer. On the SplitContainer, set the Orientation to Horizontal and the Dock to Fill. Add a grid to the top panel and a tab control to the bottom panel and set both of their Dock properties to Fill. Add an UltraDockManager to the UserControl. Create the panel with the additional control, right-click it, select 'Dock Controls' from the context menu, and dock the panel to the top of the UserControl. Rebuild the solution.
Create another UserControl and add an UltraToolbarsManager to it and define your toolbar. Add an instance of the first UserControl to the fill panel added by the toolbars manager and set its Dock property to Fill. Rebuild the solution.
Add an instance of the second UserControl to the tab page control in the main form and set its Dock property to Fill.
I tried somethig very smiliar to this method. i created user control 1 that contains an ultradockmanager and two ultragrids. Both of the grids are contained in a split container with vertical orientiation. Everything looks fine on user control 1 . I then created user control 2 and added user control 1 to it. The grids on user control 2 are now outside of the panel boundaries even though they are inside the panel boundaries in user control 1. Can you explain why these grids are getting moved?