Ribbon group and control customization |
Post Reply |
Author | |
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 890 |
Post Options
Thanks(0)
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).
|
|
Fredrik
Senior Member Joined: 22 June 2005 Status: Offline Points: 235 |
Post Options
Thanks(0)
|
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
|
|
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 890 |
Post Options
Thanks(0)
|
Thanks Fredrik, I'm sure that's it.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |