Solved

change postion of ribbongroup

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi 2 77
Firemonkey android show image from resource ? 1 57
Capture logon name 13 106
How to Get Images From Server to Client using App Tethering 1 41
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.
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…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

726 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