Print Page | Close Window

Ribbon group and control customization

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=24313
Printed Date: 19 April 2024 at 6:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon group and control customization
Posted By: rdhd
Subject: Ribbon group and control customization
Date 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).



Replies:
Posted By: Fredrik
Date 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


Posted By: rdhd
Date Posted: 30 July 2022 at 8:00am
Thanks Fredrik,

I'm sure that's it.



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