Ribbon Sample |
Post Reply |
Author | |
coldjoke
Newbie Joined: 07 June 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 07 June 2007 at 5:27am |
I've tried for so long
and still can't setup RibbonBar in a simple SDI project
is it possible to provide an simple Ribbon sample that can be understood without reading too many codes??
by the way, i am using v 11.1.0
thanks
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Attach project you tried. Will point what you forget.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
coldjoke
Newbie Joined: 07 June 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
somehow it works now @@ but i got another problem.
now i have the RibbonBar but the docking pane has gone
m_paneManager.InstallDockingPanes(this);
// Set Office 2003 Theme m_paneManager.SetTheme(xtpPaneThemeOffice2003); is it because i am using xtpPaneThemeOffice2003??
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
No, theme can't be problem. Do you create some panes?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
coldjoke
Newbie Joined: 07 June 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
i used the wizard to create the project and it created 2 panes for me all i did to the project is remove menu and toolbar
and insert Ribbon
this is the creation of the panes
// Initialize the docking pane manager and set the
// initial them for the docking panes. Do this only after all // control bars objects have been created and docked. m_paneManager.InstallDockingPanes(this); // Set Office 2003 Theme m_paneManager.SetTheme(xtpPaneThemeOffice2003); // Create docking panes.
CXTPDockingPane* pwndPane1 = m_paneManager.CreatePane( IDR_PANE_OPTIONS, CRect(0, 0,200, 120), xtpPaneDockLeft); CXTPDockingPane* pwndPane2 = m_paneManager.CreatePane( IDR_PANE_PROPERTIES, CRect(0, 0,200, 120), xtpPaneDockBottom, pwndPane1); // Set the icons for the docking pane tabs.
int nIDIcons[] = {IDR_PANE_OPTIONS, IDR_PANE_PROPERTIES}; m_paneManager.SetIcons(IDB_BITMAP_ICONS, nIDIcons, _countof(nIDIcons), RGB(0, 255, 0)); // Load the previous state for docking panes.
CXTPDockingPaneLayout layoutNormal(&m_paneManager); if (layoutNormal.Load(_T("NormalLayout"))) { m_paneManager.SetLayout(&layoutNormal); } |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Just tried. Works for me.
Attach project.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
coldjoke
Newbie Joined: 07 June 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
after adding these two line at the end m_paneManager.ShowPane(IDR_PANE_OPTIONS);
m_paneManager.ShowPane(IDR_PANE_PROPERTIES); it works too, but before using RibbonBar
|
|
coldjoke
Newbie Joined: 07 June 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
and i don't have the permission to upload files :(
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
I modified forum settings.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
coldjoke
Newbie Joined: 07 June 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Hi,
I know where the problem is now
I closed the docking panes when testing my sample
and by default, the layout was saved on close
that's why they never came out again.
thanks for the help :)
|
|
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 |