![]() |
CXTPToolBar+CDialogBar problems |
Post Reply
|
| Author | |
Irina
Newbie
Joined: 05 February 2007 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPToolBar+CDialogBar problemsPosted: 06 February 2007 at 2:32am |
|
So... I need create and set place of CDialogBar near ToolBar. (I use XTreme
ToolKitPro) For the standard CToolBar (MFC) I havn't any problem - CRebar m_wndReBar.AddBar(&m_wndToolBar); But for XTreme it's wrong... CXTPToolBar* pStandardBar = (CXTPToolBar*)pCommandBars->Add(_T("Standard"), xtpBarTop); and m_wndReBar.AddBar(pStandardBar); This bar does not set on the CRebar. So.. I try another way for create: UINT nCommands[] = {ID_CMD0, ID_CMD1, ID_CMD2, ID_CMD3}; CXTPToolBar m_ToolBar.CreateToolBar(WS_VISIBLE|WS_CHILD|CBRS_TOOLTIPS,this); //m_ToolBar.LoadToolBar(IDR_MAINFRAME); XTPImageManager()->SetIcons(IDR_MAINFRAME, nCommands, 3, CSize(72, 72) ); XTPImageManager()->RefreshAll(); m_ToolBar.GetControls()->Add(xtpControlButton, nCommands[0]); //SetButtons(nCommands, 3); So its way better but button does not appear.. When I try to catch ON_XTP_CREATECONTROL and set like control dialog(child, no border) - in that case we have fail-dawn on create toolbar. And quastions: How to impelents those functionality? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 February 2007 at 10:12am |
|
Hi,
Check Samples\UserInterface\GUI_Explorer sample - it has rebar.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Irina
Newbie
Joined: 05 February 2007 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 February 2007 at 2:16am |
|
in this sample two toolbars are created. one placed to the right of other. pAddress created as CXTPToolBar, CXTPControlComboBox layed over it.But i have to arrange not the single control, but CDialogBar. CXTPReBar is not used in this project.
|
|
![]() |
|
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 |