cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ProUIListBackgroundcolorSet: let the user define his own colours

ProUIListBackgroundcolorSet: let the user define his own colours

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.

1 Comment
sully7
13-Aquamarine

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