Print Page | Close Window

Dialog panes with scrollbars?

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=13825
Printed Date: 04 July 2022 at 5:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dialog panes with scrollbars?
Posted By: znakeeye
Subject: Dialog panes with scrollbars?
Date Posted: 27 March 2009 at 2:45am
I have a couple of panes where the child is a dialog window. When the pane is resized the underlying dialog is of course obscured by the borders. For panes, it would be really nice if CXTResizeDialog could somehow show scrollbars when parts of the dialog are obscured! Something like "Toolbox" in VC++.
 
Is this possible at this point? If not, I believe this would be great to have.


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: Oleg
Date Posted: 30 March 2009 at 2:11am
Hi,
 
Actually CXTPPropertyPage supports it - so you can try replace CDialog parent class to CXTPPropertySheet and in OnInitDialog add
 
 m_totalDev = CSize(200, 200); // Size of client


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 30 March 2009 at 3:15am
Great! I'll have a look. Thanks!

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: Oleg
Date Posted: 30 March 2009 at 4:58am
only "..CDialog parent class to CXTPPropertyPage.."

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 30 March 2009 at 3:15pm
Thanks, it works.
 
Perhaps CXTPPropertyPage should have this functionality somewhere?
BOOL CMyPane::OnInitDialog()
{
    VERIFY(CXTPPropertyPage::OnInitDialog());
    
    CDialogTemplate dt(m_hDialogTemplate);
    dt.Load(m_lpszTemplateName);
    CSize size(0, 0);
    dt.GetSizeInPixels(&size);
    ...
}
 
Perhaps configurable by a flag, or a function? Just an idea. It would make sense.


-------------
PokerMemento - http://www.pokermemento.com/



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