I need some help with creating 'docking' appearance with ExpressDocking from DevExpress.com. I use TdxDocSite and TdxDockPanel.
I would like to create simple docking application, with one fixed left dxDocPanel which opens new dxDocPanels on the right. Attached image shows that if I open only one new dxDocPanel, it opens it as 'client' aligned, so they both occupy full dxDocSite.
If I open another 'window', it will align both opened as half/half (2. on image) and if three.. they would all be same width to fully occupy dxDocsite and if I open the fourth window, they would all be fitted squarely.
So, the left panel has a list of 'items' and on right-click I can 'open' them as 'window' (dxDocPanel) on the right. It all appears in dxDocSite.
I was trying to create the mechanism but I just don't know how to.
1. first stage - only left panel is seen
2. I opened first 'window'
3. second window
4. third window
5. fourth window is opened
This is how I create only left panel:
FTreeViewFrameCount := 0;
gPanel1 := TdxDockPanel.Create(Self);
, dtLeft, 0);
s_form, gPanel1); -- THIS IS WHERE I CREATE CONTENT OF THE LEFT PANEL!! - LISTVIEW/TREEVIEW
gPanel1.CaptionButtons := gPanel1.CaptionButtons - [cbClose];
gPanel1.Caption := 'List of windows';