Solved

change postion of ribbongroup

Posted on 2010-09-23
3
672 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
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.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

705 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