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
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
David
Yes sir, that would be great!
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.
Wow. Thank you David for those new functions and for all the other tools and knowledge you continue to share.
Hi Craig
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.
Regards
David
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156