Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

change postion of ribbongroup

Posted on 2010-09-23
3
Medium Priority
?
674 Views
Last Modified: 2012-05-10
I am now using the Ribbon control

I want to change position of Ribbongroup  

I want to change the groupindex so that RibbonGroupSettings stay on the last position depending on the visibility
of RibbongroupRoadMap

This doesnt work:

In FormCreate or FormShow:

if not RibbonGroupRoadMap.Visible
Begin;
  RibbonGroupSettings.Groupindex := 3;
  RibbonGroupRoadMap.GroupIndex:= 4;
End;

Open in new window


Groupindex is not changed and ribbonGroupSettings is on the same place (after roadmap)  ?
Can anybody give an explanation and a solution ?
0
Comment
Question by:advance1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
Ferruccio Accalai earned 1000 total points
ID: 33751880
This happens because you probably are trying to assign to RibbonGroupSettings an already assigned GroupIndex (probably the RibbonGroupMap one).
Instead of change all the two TRibbonGroup GroupIndex, change just the once you want to move to the last.
You can assign every index you prefere just taking care that it's the higher one.

So you can simply do this

if not RibbonGroupRoadMap.Visible
  RibbonGroupRoadMap.GroupIndex:= 100; //this should be for sure the higher in your app

Than if you want to reorder it again in its original position just reassign its original index (I guess 3), so don't change any other GroupIndex. This way you can manage the grouping at runtime as you prefere.

0
 

Author Comment

by:advance1
ID: 33756622
Thks,sound good
I will try it monday
0
 

Author Closing Comment

by:advance1
ID: 33772792
Problem solved, Thks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question