Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Dialog panes with scrollbars?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dialog panes with scrollbars?

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Dialog panes with scrollbars?
    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/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2009 at 3:15am
Great! I'll have a look. Thanks!
PokerMemento - http://www.pokermemento.com/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2009 at 4:58am
only "..CDialog parent class to CXTPPropertyPage.."
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.