Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6912285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:04:21+00:00 2026-05-27T09:04:21+00:00

I am running Delphi 2010 on both a 64 bit windows machine (Win 7),

  • 0

I am running Delphi 2010 on both a 64 bit windows machine (Win 7), and a 32 bit windows machine (XP).

I am trying to learn how to use the TRibbon control.

I have been following the example in Marco Cantu’s 2009 Handbook and watching YouTube Demos, but my control is not working like that as explained in the book or demos.

I added two tabs, by right clicking the control. However, the TRibbon looked as exactly as it does in my screenshot, when i drop it on the main form. It is not as high as the ones in the books or youtube demos.

I have tried the same thing on my Win 32 laptop running Windows Xp and Delphi 2010 and get the exact same results

here is what it looks like on my machine

64 bit laptop screenshot

here is what it is suppose to look like in a demo

from youtube video demo

Once again. When it drop it on the form, it does not take the shape and height as that as i see in the demos. Even when i add tabs. Did i do something wrong during my Delphi 2010 installation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:04:22+00:00Added an answer on May 27, 2026 at 9:04 am

    I managed finally to reproduce the problem in Delphi XE (Update 1) on Win7 64 with Aero enabled. It seems that the size gets set wrong in the .DFM file, and because the Ribbon doesn’t support manual resizing you can’t visually fix it in the IDE (although it appears correctly at runtime) or in the Object Inspector. It occasionally appears correctly at runtime, but it seems that’s sporadic as well.

    It’s a nasty bug, because it makes it impossible to design the Ribbon. You can add RibbonGroup items, and assign the ActionManager, and try and design it completely using the Structure Pane, but of course that’s not a practical solution.

    Fortunately, there’s a pretty easy workaround, although it’s annoying to have to do. 🙂

    I managed twice to get the following workaround to function, but starting over it failed to work several times, so it’s a possible way around it (no promises – worked in XE, consistently failed in XE2 Update 2):

    • Right-click on the Ribbon and add at least one tab.
    • Right click on the form in the IDE, and choose View as Text from the context (pop-up) menu.
    • Find the Ribbon control in the .dfm text, and change the Height from the 26 that the IDE assigned to 200. (The next step will adjust it, but that’s fine – the 200 fixes the immediate problem.)
    • Right-click again, and choose View as Form, and the Ribbon should display correctly.

    (I reported it in QC against XE2 Update 2, as the problem also exists there – QC #101642)

    I traced it to TCustomRibbon.GetCaptionHeight, specifically

    FCaptionHeight := Max(GetSystemMetrics(SM_CYCAPTION), 26);
    

    It seems like the GetSystemMetrics call is returning something less than 26 on certain Win7 configurations (although I can’t figure out why yet). There are a couple of commented lines in that method that seem to alter the result, but as I said they’ve been commented out.

    The strange part is that in the TCustomRibbon.Create, the Height is set by a call to GetRibbonMetric(rmFullHeight), which sets the Result := cRibbonHeight + GetCaptionHeight;, and cRibbonHeight is a constant defined as cRibbonHeight = 117;.

    Finally think I’ve tracked this down. In the declaration of TRibbon, there’s a published property declaration:

    published
       ...
      property Height default TCustomRibbon.cRibbonHeight;
    

    Because this is the default, it appears that any other value means that the call to GetRibbonMetric mentioned above doesn’t happen (see the TCustomRibbon.Create mentioned above), and the strange result from the call to GetSystemMetric causes the erroneous value 26 to be saved as the ‘other value`. Wierd; will update the QC in the AM.

    Addendum: Updated QC report with additional details.

    Addendum: QC report opened in May 2012, but does not appear to have been resolved as of XE5 Update 1 (checked Jan 2014).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Windows Server 2008 R2 Machine that is running a Delphi 2007 application.
I have been running an application developed under Windows 7 in Delphi XE on
I am running windows 7 x64 enterprise. I have Office 2010 x64 installed. I
I am using Delphi 2010 to build a Win32 GUI application running on Windows
I have been toying around with creating soap servers in Delphi then running and
We have a machine running Delphi XE Professional that will change the value of
i have two delphi xe installled in different virtual machines (Running in Windows 7
Scenario: Delphi 2010 running the latest Indy version from svn trunk. I have an
I have a Delphi application running under Windows that needs to block until another
I'm running windows 7 64-bit and trying to load an ISAPI Extension I'm busy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.