![]() |
Need command database |
Post Reply
|
| Author | |
wuyunpeng
Newbie
Joined: 01 December 2005 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Topic: Need command databasePosted: 01 December 2005 at 6:34pm |
|
i want to create command database and every command has ID,Icon,Text... etc. i do not want to use LoadToolBar method to create toolbar,but to create toolbar with my command database. how can i do this? thanks. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 December 2005 at 12:43am |
|
You can create each control individually: CXTPControl* pControl = pToolBar->GetControls()->Add(...); pControl->SetCaption(...); pControl->SetDescription(..); pControl->SetIconId(..); ....
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
wuyunpeng
Newbie
Joined: 01 December 2005 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 December 2005 at 8:49pm |
|
If i changed the toolbar in this way,can the menubar be changed automatically? thanks! |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 December 2005 at 6:05am |
|
??? Changed automatically to what? You can create all toolbars/menus with this method |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
wuyunpeng
Newbie
Joined: 01 December 2005 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 December 2005 at 6:49am |
|
How to create menus with this method? thanks. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 December 2005 at 8:28am |
|
CXTPCommandBars* pCommandBars = GetCommandBars(); CXTPMenuBar* pMenuBar = pCommandBars->SetMenu(_T("Menu Bar"), 0); CXTPControlPopup* pControlFile = (CXTPControlPopup*)pMenuBar->GetControls()->Add(xtpCon trolPopup, 0); pControlFile->GetCommandBar()->GetControls()-> ;Add(xtpControlButton, ID_FILE_NEW); |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |