Print Page | Close Window

how to make chevron drop down like menu

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=2300
Printed Date: 08 November 2025 at 6:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to make chevron drop down like menu
Posted By: jeffcmj
Subject: how to make chevron drop down like menu
Date Posted: 30 May 2005 at 11:33pm

Hi,

When there are too many toolbar buttons, xtp list them as chevron drop down. Currently it looks like another toolbar, how to make it looks like menu? I mean one button one line and has icon in front of text.

And the drop down does not follow the icon size of the toolbar. One of my toolbar is 16*16 size icon, but the icon of its drop down is 32*32.

 




Replies:
Posted By: Oleg
Date Posted: 03 June 2005 at 2:06am

Here code:

...

ON_XTP_CREATECOMMANDBAR()

...

int CMainFrame::OnCreateCommandBar(LPCREATEBARSTRUCT lpCreatePopup)
{
 
 if (lpCreatePopup->bExpandBar)
 {
  lpCreatePopup->pCommandBar = CXTPPopupBar::CreatePopupBar(GetCommandBars());
  return TRUE;
 }

 return FALSE;
}

 



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


Posted By: jeffcmj
Date Posted: 03 June 2005 at 11:14pm
Thanks oleg. But your code will change ALL expand bar into menu dropdown. Is it possible to only change one particular bar? It seems OnCreateCommandBar does not pass bar id etc to identify the bar.



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