Using Ribbon in a dialog |
Post Reply |
Author | |
yves
Newbie Joined: 05 June 2017 Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 05 June 2017 at 6:38pm |
Hello. Is this possible to use Ribbon in a dialog? Does anyone have an example? Thanks.
|
|
Alex H.
Senior Member Joined: 12 February 2004 Status: Offline Points: 266 |
Post Options
Thanks(1)
|
Hi!
Yes it works :-) Have a look at: Samples\CommandBars\DialogSample\DialogSampleDlg.cpp(197) I can send you some snippets :-) derive your dialog from CXTPDialogBase<CXTResizeDialog> |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
This was very useful for displaying Ribbons in a dialog.
But how do I remove/delete the Ribbon bar runtime from code in the dialog. 1) Using Remove on the Toolbar does not fully do the trick, since there still is an empty window/background in the ribbon area left? 2) SetVisible(FALSE) hides the toolbar but also leaves an empty window/background. 3) delete CommandBars is virtual and cannot be called There is missing the opposite to InitCommandBars to fully remove the ribbon? -cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
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 |