Skip to main content
Jul 26, 2020 2:42 PM UTC
Archived

ProUIListBackgroundcolorSet: let the user define his own colours

Related products:Creo Parametric

The Creo toolkit function ProUIListBackgrouncolorSet only allows the use of predefined hard coded colours (ProUIColor).
Give the user the option to define his own colours.
This could be implemented (with respect to backward compatibility) by using the integer values of current colours as an index to a RGB table. In this table e.g. starting from 100 the user could define his own colours.

2 replies

Aug 8, 2022 12:27 AM UTC

Just an FYI - the Object Toolkit API version does support this.

 

The class 'uifcList' has a method for 'SetBackgroundColor'. 

 

So, if you have a 'dialog' and a component' already existing in your Pro/TOOLKIT code, you should be able to simply do something like this: 

 

 

uifcColor_ptr color = uifcColor::Create(255, 0, 0);
uifcList_ptr list = uifcListFind(dialog_name, component_name);
list->SetBackgroundColor(color);

 

 

Thanks,

 

James Sullivan

President & Founder
CadActive Technologies - www.cadactive.com

AndrewK
Community Manager
Oct 2, 2024 2:06 PM UTC
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.