Print Page | Close Window

Re-using a RibbonGroup in another RibbonTab

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=16127
Printed Date: 06 October 2024 at 12:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Re-using a RibbonGroup in another RibbonTab
Posted By: Carlos Rocha
Subject: Re-using a RibbonGroup in another RibbonTab
Date Posted: 02 February 2010 at 1:04pm
I need a RibbonGroup to be used in more than one RibbonTab. It's possible to create it just once, with all needed controls, and assign this same group to another RibbonTab?

Thanks

-------------
SuitePro 20.3.0
OS: Windows 10
Language: Visual Objects 2.8



Replies:
Posted By: shipwreck
Date Posted: 02 February 2010 at 1:41pm
I'm not sure if the method your looking for is possible but the function that your needing is quite easy, Simply create the very same group the same as you would normally, just changing the ribbon tab as the parent. This might mean a little more coding but I'm sure it would implement this function for you.

I would provide a sample of code for you but I'm not familiar with Visual Objects all that well as I currently use Visual Basic 6.

I hope that helps friend. :]

-------------
Product: Xtreme Suite Pro (Active-X), Version 15.3.1

Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit)

Language: Visual Basic 6.0 SP6


Posted By: moe188
Date Posted: 02 February 2010 at 2:06pm
http://forum.codejock.com/uploads/20100202_140545_Sample.rar - uploads/20100202_140545_Sample.rar
I am not sure if that is what you are looking for
good luck


-------------
Visual Baisc 6 SP6

Windows XP Pro Sp3, Windows 7
Codejock Xtreme SuitePro ActiveX 15.1.3


Posted By: Carlos Rocha
Date Posted: 02 February 2010 at 6:09pm
Thats what I'm doing right now, but this way each repeated group is a new instance of RibbonGroup, with repeated set of controls, and not the same group used by more than one tab.

I was thinking about something like this (not VB, but readable)

oGroup1 := oTab1:Groups:Add("Common Group", ID_COMMON_GROUP)
oGroup1:Controls:Add(...)
oGroup1:Controls:Add(...)
...

oGroup2 := oTab2:Groups:Add("Dummy Group", ID_COMMON_GROUP)
oGroup2 := oGroup1

oGroup3 := oTab3:Groups:Add("Dummy Group", ID_COMMON_GROUP)
oGroup3 := oGroup1

I guess I would need something like

oTab:Groups:AddGroup(oGroup)

to insert an already made group in the RibbonTab

Anyway, it's not that important, as long as there is a way to do it.

Thanks



-------------
SuitePro 20.3.0
OS: Windows 10
Language: Visual Objects 2.8



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