Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - how to make chevron drop down like menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to make chevron drop down like menu

 Post Reply Post Reply
Author
Message
jeffcmj View Drop Down
Groupie
Groupie


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post Topic: how to make chevron drop down like menu
    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.

 



Edited by jeffcmj
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jeffcmj View Drop Down
Groupie
Groupie


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.