Print Page | Close Window

Toolbar->menu->toolbox

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=628
Printed Date: 10 May 2024 at 9:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar->menu->toolbox
Posted By: Grey-Wolf
Subject: Toolbar->menu->toolbox
Date Posted: 16 April 2004 at 7:58am

Hello all,

 

I want to create a menu on a toolbar button that has a toolbox on the menu items, an example of the sort of thing I am looking for is the AutoShapes menu on the drawing toolbar of word.

 

Is this possible? If so how would I go about doing it?

 

Thanks

 




Replies:
Posted By: SuperMario
Date Posted: 16 April 2004 at 10:46am
Yes, this is possible.  Take a look at the TearOff Popups sample to see how to do this.


Posted By: Grey-Wolf
Date Posted: 21 April 2004 at 7:48am

Thanks,

I now have the following code in OnCreateCommandBar(...)

if (lpCreatePopup->bPopup && _tcscmp(lpCreatePopup->lpcstrCaption, _T("Basic Shapes")) == 0)

{

CXTPPopupBar* pPopupBar = CXTPPopupBar::CreatePopupBar(GetCommandBars());

pPopupBar->SetTearOffPopup(_T("Basic Shapes"), ID_BASIC_SHAPES);

pPopupBar->LoadToolBar(IDR_BASIC_SHAPES);

lpCreatePopup->pCommandBar = pPopupBar;

return TRUE;

}

 

How do I set CXTPPopupBar to display Icons only in a grid?  I have over 30 toolbar items on some of the menus.

Thanks




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