Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Ribbon group and control customization
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon group and control customization

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon group and control customization
    Posted: 29 July 2022 at 1:26pm
Hi,

I thought that long ago I found a sample that showed CJ ribbon bar customization. I'm not talking about the customize dialog. I was able to drag controls around on a group and even on popups. If I didn't see it in a sample, I turned it on in our app.

I was wanting to reexamine this capability. I have found the group m_bShowOptionButton member and turned it on and I could write code to react to it being pressed. But, that's not what I think I found.

I also found the toolbar m_bShowExpandButton member and set it to true for our ribbon bar. But, unlike a pure toolbar where the calc layout code detects that member and adds the CControlButtonExpand control, the CXTPRibbonBar doesn't use it.

I swear I was able to turn something on and click popups and drag and drop controls in the ribbon UI. I even see the control popup OnCustomizeDragOver/DoCustomDragOver methods though I don't know if those were related to what I think I saw, long long ago (so my memory is vague on this).
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 235
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Posted: 30 July 2022 at 7:29am
Are you perhaps looking for:

   pCommandBars->EnableCustomization(TRUE);
   pCommandBars->GetCommandBarsOptions()->bAltDragCustomization = TRUE;

Then you can hold Alt and drag commands around in the Ribbon bar.
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 30 July 2022 at 8:00am
Thanks Fredrik,

I'm sure that's it.
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.211 seconds.