Hi,
I want to implement docking in our windows, but I have a little problem.Our windows typically contains lots of data which often is master-detail related,so lets say that we have a master grid and the active row in that grid controls thedata in 5 other grids. I want the users to be able to show/dock/tab/hide these5 grids as they want. The data in a detail grid is fetched fom a server when themaster row changes and I don't want to get any detail data for a detail grid that is not visibleto the user.
Therfor I need to know when a control in dockablecontrolpane is visible or not, and alsoI like to have an event when this state changes. This way a detail control will be notifiedthat "now you are visible" (for instance selected in a tabgroup, or flied out) so it can be populatedwith data for the master row. And similar that the Control/Pane knows thatit is visible when the master row changes and retrieves the data directly.
I have been experimenting with the docking, but haven't found out how to this in a correctand reliable way.
-tomas.
You can check the IsVisible property of any pane to determine if it is not hidden. As far as getting notified when the visibility changes, you can hook the PaneDisplayed and PaneHidden events of the UltraDockManager.
Sorry, I should have said that I'm using 2005 Vol3 which doesn't seem to have those events.
In addition the IsVisible is for instance true when the pane is in a tab group and not visible (selected) and false when the pane is "flied out" (and not pinned).