Solved

change postion of ribbongroup

Posted on 2010-09-23
3
663 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
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
Ferruccio Accalai earned 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now