Print Page | Close Window

[SOLVED] HOWTO: Custom pane layout

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=18830
Printed Date: 26 April 2024 at 5:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] HOWTO: Custom pane layout
Posted By: mgampi
Subject: [SOLVED] HOWTO: Custom pane layout
Date Posted: 16 August 2011 at 7:51am
Hi;

I use below code to create 4 docking panes. Two of them are closed just after creation and the other two should be shown on startup. This is the first problem - the wrong panes are shown and I'm definitely not using a loaded pane manager layout.
CXTPDockingPane* pwndPane1 = paneManager_.CreatePane(IDR_PANE_BOOKKEEPING, CRect(0, 0, 400, 200), xtpPaneDockTop);

    pwndPane1->SetOptions(xtpPaneNoCaption|xtpPaneNoFloatable);
    pwndPane1->Close();

    CXTPDockingPane* pwndPane2 = paneManager_.CreatePane(IDR_PANE_ANALYSIS_DETAIL, CRect(0, 0,200, 250), xtpPaneDockRight);

    pwndPane2->SetOptions(xtpPaneNoCaption|xtpPaneNoFloatable);
    pwndPane2->Close();


    CXTPDockingPane* pwndPane3 = paneManager_.CreatePane(IDR_PANE_OPTION_TREE, CRect(0, 0, 200, 120), xtpPaneDockLeft);
    CXTPDockingPane* pwndPane4 = paneManager_.CreatePane(IDR_PANE_TAGLIST, CRect(0, 0, 250, 250), xtpPaneDockRight);

Whenever the user executes a special command, the first two panes are hidden and the initially closed panes are shown. This works, but the layout of the panes is wrong. As soon as I set the options xtpPaneNoCaption|xtpPaneNoFloatable I'm unable to programmatically achieve a layout as shown by the red rectangles in the screenshot below:



How do I have to change my code to get the desired result?


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Replies:
Posted By: mgampi
Date Posted: 16 August 2011 at 8:11am
Hi;

My mistake! I used to call SetMinTrackSize() / SetMaxTrackSize() and assigned std::numeric_limits<unsigned long>::max() to the x component of max track size. This leads to weird results inside the toolkit code...


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net