Dialog panes with scrollbars? |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Great! I'll have a look. Thanks!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
only "..CDialog parent class to CXTPPropertyPage.."
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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/
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |