|  | 
| What does AddCategories(CXTPControls* ) do? | 
| Post Reply   | 
| Author | |
| tralfaz   Groupie   Joined: 21 June 2009 Status: Offline Points: 36 |  Post Options  Thanks(0)  Quote  Reply  Topic: What does AddCategories(CXTPControls* ) do? Posted: 10 August 2009 at 9:12pm | 
| 
   
When I added it, nothing showed up differently in the customize dialog. I expected a new tab category called Controls showing the buttons in the list CXTPCustomizeCommandsPage* pCommands = dlg.GetCommandsPage(); CXTPToolBar* pTBar = pCommandBars->GetToolBar(IDR_CUSTOM_TOOLBAR); if (pTBar) { CXTPControls* pControls = pTBar->GetControls(); pCommands->AddCategories(pControls); } | |
| XP Pro SP3 / VS2008 C++ / Xtreme CommandBars v13.1.0 | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  Posted: 12 August 2009 at 3:07am | 
| 
   why "Controls" ?
 Your controls in toolbar doesn't have Category assigned. Try pControls->GetAt(0)->SetCategory("Category"); | |
| 
     Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS | |
|  | |
| tralfaz   Groupie   Joined: 21 June 2009 Status: Offline Points: 36 |  Post Options  Thanks(0)  Quote  Reply  Posted: 12 August 2009 at 9:57am | 
| 
   
Based on your response, I put your line of code here: CXTPToolBar* pTBar = pCommandBars->GetToolBar(IDR_CUSTOM_TOOLBAR); if (pTBar) { CXTPControls* pControls = pTBar->GetControls(); pControls->GetAt(0)->SetCategory("Category"); pCommands->AddCategories(pControls); } Of course it didn't work because I need more information. 1. There is an AddCategories(CXTPControls* pControls) 2. What does it do? 3. Can I use it to display controls from a toolbar? Here's the problem. Your All Commands only show the commands from a Menu. I have custom commands (not in the menu) the user can create inside the program. How do I get those to show in Customize? One way would be to expose the controls from the Custom Toolbar. | |
| XP Pro SP3 / VS2008 C++ / Xtreme CommandBars v13.1.0 | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  Posted: 13 August 2009 at 1:56am | 
| Hi, See code in \Samples\CommandBars\CustomThemes  it adds additonal buttons to command page. | |
| 
     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 |