Print Page | Close Window

Need command database

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3326
Printed Date: 11 January 2026 at 6:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Need command database
Posted By: wuyunpeng
Subject: Need command database
Date Posted: 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.




Replies:
Posted By: Oleg
Date 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


Posted By: wuyunpeng
Date Posted: 02 December 2005 at 8:49pm

If i changed the toolbar in this way,can the menubar be changed automatically?

thanks!



Posted By: Oleg
Date 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


Posted By: wuyunpeng
Date Posted: 05 December 2005 at 6:49am

How to create menus with this method?

thanks.



Posted By: Oleg
Date 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->SetCaption(_T("&File"));

 pControlFile->GetCommandBar()->GetControls()-> ;Add(xtpControlButton, ID_FILE_NEW);



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net