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

Add TOOLKIT C API ProUILayoutBackgroundcolorSet()

Add TOOLKIT C API ProUILayoutBackgroundcolorSet()

There is currently no simple way to programmatically display a color choice in a TOOLKIT GUI other than by using an InputPanel  widget which has a ProUIInputpanelBackgroundcolorSet() API. An InputPanel is of course a widget designed for entering data and is not ideal as a means of displaying a color that needs to be set programmatically. A much better choice is a Layout widget in which other widgets may be placed. One can set the foreground and background colors of a Layout in a resource file but not via APIs. Having a ProUILayoutBackgroundcolorSet() API would not only allow the display of a rectangular area that defines a color choice but would also allow the full implementation of a MessagePanel composite widget like the one that I have created for our Perl/Tk and Java applications and which I have now started to use in our TOOLKIT applications which are written in C++. A MessagePanel consists of a Layout that contains a PushButton on the left and an InputPanel. It may contain other widgets like for example a PushButton for closing the application. See the image below. The idea is to display INFO|WARNING|ERROR|PROMPT messages in the InputPanel while at the same time displaying an appropriate icon in the PushButton and having the Layout color be a related color (green for INFO, yellow for WARNING and PROMPT and red for ERROR). Pressing the PushButton displays a dialog the displays all the generated messages. In my implementation, the MessagePanel displays the same messages that I write to the CreoParametric message window. In the Pro/ENGINEER days, one could display the message window at the top making it easy for users to see the messages. In CreoParametric, the location is at the bottom and cannot be changed. Because of this, it is easy for users to miss the messages. Having them also be displayed in a MessagePanel at the top of the GUI improves the usability of the application.

 

MessagePanel_info.jpg

This is a snippet of our CAEStart Perl/Tk application which we use to launch our wrapper application for CreoParametric.

MessagePanel_CAEStart.jpg

 

4 Comments
olivierlp
Community Manager

Hello, 

 

Thank you for publishing your idea. Despite the detailed problem description you provided, we need more information as specified in the form you saw in the submission process. (questions below). The more context you give to document your idea, the better. Think about ways to educate and convince other Community members to support your idea and present your case to the product management team for consideration. 

 

Please let us know within the next two weeks.

 

1. Describe your environment: What is your industry? What is your role in your organization? Describe your stakeholders.

2. What product & version are you currently running?

3. Describe the problem you are trying to solve. Please include detailed documentation such as screenshots, images or video.

4. What is the use case for your organization?

5. What business value would your suggestion represent for your organization?

 

For your information, I also invite you to check out this topic where 2 PTC executives explain product managers' approach to customer ideas and input for product roadmaps. 

olivierlp
Community Manager
Status changed to: Clarification Needed
 
olivierlp
Community Manager
Status changed to: Archived

Hello,
We are following up on our request for additional information on your idea. In the absence of further comments from you, we are archiving your idea. You still have the option to post a new idea with all the details required.
Thank you.

mfischer
17-Peridot
Status changed to: Delivered

PTC has delivered updated API's to address this Enhancement Request.  

 

The following API's have been added to allow the control of the background color of the panel widget.

  • ProUILayoutBackgroundcolorSet
  • ProUILayoutBackgroundcolorGet

The API's are available in Creo 7.0.9.0, Creo 8.0.5.0 and Creo 9.0.1.0.