Notifications
Announcements
No record found.
Is there a way to access (or assign) a component a color from the Dynamics GP pallet of colors? I have a windows form that inherits DexUIForm and includes the dexDefaultColorsProvider component. I have added a panel to the form and would like to assign the background color to match one of the GP colors. There is no Dexterity section in the properties of the Panel. Is there a way in code to pull a color from the GP color provider?
Hi Craig
GP Power Tools has the ability to change the colours of Dexterity windows on a per company basis as part of the Administrator Tools module.
I know that VSTools Winforms don't match the colours used by GP once GP Power Tools changes the colours.
I am working on a new build of GP Power Tools at the moment, it might be possible to add an API for you to get the colours (RGB) so you can update your window and controls to match.
Even without an API, pass through Dexterity should be able to get the values. However, passing the values back to VSTools requires some tricks to pass the values back and forth as string variables.
I like the idea of an API for you to get the current colours that you can call when you open a Winform window. I will see about adding it to the upcoming Build 29 release.
Regards
David
So....
I confirmed that it is not possible to get the colours currently in use from Dexterity. It only has the ability to set the colours for the colour themes and not to get them.
However, in most cases, the custom colours are because the site has GP Power Tools installed.
So I have added two functions specifically so that you can get the colours currently in use by GP Power Tools.
Added MBS_CompanyColorGet and MBS_CompanyColorGetRGB functions which can be by VSTools applications to get the current company colours being used as numeric values or RGB values.
These functions will be in the upcoming Build 29 and can be accessed by adding a reference to the Application.GpPowerTools.dll Dictionary Assembly.
Wow. Thank you David for those new functions and for all the other tools and knowledge you continue to share.
If you want to test out the functions. I can provide a link to the Build 29 beta code that as of today now contains those functions.
Yes sir, that would be great!
Note this will only work for a customer with GP Power Tools build 29 (once it has been released).
Please contact me using the Contact Us page on https://www.winthropdc.com/contact.htm
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 544 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader