web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to change color based on the company/environment

(0) ShareShare
ReportReport
Posted on by

Hello,

Our users have been asking us to change the color of Ax environment based on the company selected. One way to accomplish this would be to change the background color of the forms by overriding the run method of SysSetupFormRun class and coding something like

this.design().backgroundColor(backGroundColor); in the method.

However this gives an unpleasant appearance, especially around the buttons and containers in the form.

Is there any way to assign the color of the title bar of the form/window or any other parts of the AX client besides the background color of forms?

I am wondering if it is possible to use WinAPI, and some dll functions such as those available in USR32.DLL to change the color of different parts of the window.

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at
    Re: How to change color based on the company/environment

    This is an excellent alternative from Arijit blog:

    daxguy.blogspot.com/.../ax-environment-information-on-ui-simple.html

    Hope this helps.

    Kind regards.

  • Community Member Profile Picture
    on at
    Re: How to change color based on the company/environment

    Thanks Kent (and Arijit)

    This certainly looks more elegant than just changing the background color. I will run this by our users and see if they like it. As far as I can see, there is no reason for them not to.

    Thanks again.

  • Thayer Coburn Profile Picture
    65 on at
    Re: How to change color based on the company/environment

    I know this thread is a little stale, but this may help:

    If you go to Basic->Setup->Company information, there is a "Form color" pulldown that allows you to pick a different background color.  I think it's company-specific by virtue of the fact that it's in the Basic area.

     

    Does that do what you're trying to accomplish?

  • Community Member Profile Picture
    on at
    Re: How to change color based on the company/environment

    Hey Thayer,

    This is new for AX 2012, was not in previous versions.

    Kindest regards.

  • Thayer Coburn Profile Picture
    65 on at
    Re: How to change color based on the company/environment

    Hi Kent,

    It is AX2009--here's another screen shot:

     

    Best regards,

    Thayer

  • Suggested answer
    Community Member Profile Picture
    on at
    Re: How to change color based on the company/environment

    Hi Thayer,

    I don't think this is out of the box functionality.  Could of either been included in a MS hotfix or RU.  Or perhaps this was coded in your system by your developer(s) or var.

  • Thayer Coburn Profile Picture
    65 on at
    Re: How to change color based on the company/environment

    Our VAR claims they have not developed such a solution.

  • Alex Kwitny Profile Picture
    395 on at
    RE: How to change color based on the company/environment

    @Thayer Coburn, that is 100% a customization.  Check Classes\SysSetupFormRun and you will see some custom code there too.

  • ArGee Profile Picture
    20 on at
    RE: How to change color based on the company/environment

    Hey Thayer,

    Rich here, I did that mod during your install back when I worked for the VAR.

  • Suggested answer
    PA-22040759-0 Profile Picture
    6,194 on at
    RE: How to change color based on the company/environment

    Here is my take on coloring forms depending on Company and environment: www.agermark.com/.../color-code-forms-in-ax-2012-depending.html

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans