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 7600071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:49:16+00:00 2026-05-30T22:49:16+00:00

I have a TActionManager on my Form. I would like to from code at

  • 0

I have a TActionManager on my Form.

I would like to from code at runtime be able to change the style of the Action Manager between ‘Platform Default’ ‘and XP Style’ etc.

When I try any of the below:

ActionManager1.Style := 'Platform Default';
ActionManager1.Style := 'XP Style';

I get the following error:

Left side cannot be assigned to

I can only assume this property is read-only by the error message.

Is there a workaround, or something I might be missing as to how to change the Action Manager style at runtime?

Thanks.

  • 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-30T22:49:17+00:00Added an answer on May 30, 2026 at 10:49 pm

    I’m slightly confused by the error message you report. That is not the error message that your code produces. The error message that is actually reported, for the code in your question, is:

    E2010 Incompatible types: ‘TActionBarStyle’ and ‘string’

    Leaving that aside, the correct syntax for setting an action manager style at runtime is this:

    ActionManager1.Style := PlatformDefault;
    ActionManager1.Style := XPStyle;
    ActionManager1.Style := StandardStyle;
    

    Note that the Style property is of type TActionBarStyle. There are various instances of TActionBarStyle descendents defined in the VCL, one per registered style.

    These instances are all global variables defined in the interface section of a unit, one unit per instance. To gain access to these style objects you will need to use the following units:

    • Vcl.PlatformDefaultStyleActnCtrls for the PlatformDefault style.
    • Vcl.XPStyleActnCtrls for the XPStyle style.
    • Vcl.StdStyleActnCtrls for the StandardStyle style.

    You will need to omit the Vcl prefix on older versions of Delphi.

    The form designer uses a piece of magic to make the style look like a string in the Object Inspector. It has been implemented this way to make it feasible for you to register your own styles.

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

Sidebar

Related Questions

I would like to have an option from my Application to toggle the display
Have advancements in CPU design like dynamic instruction scheduling narrowed the performance gap between
Have you guys had any experiences (positive or negative) by placing your source code/solution
Have you refactored from an ActiveRecord to a DataMapper pattern? What conditions prompted the
Have following listener for keyboard ArrowDown event(it's key code is 40 ): window.onload =
Have converted devise new session from erb to Haml but doens't work, this is
I like to use the XPStyle found in TActionManager to create my menu interface.
Have some code: using (var ctx = new testDataContext()) { var options = new
Have a look at the following code to find X^y. /* Find exponent in
I have an TActionManager, and a TActionMainMenuBar, and I know how to add an

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.