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

We are working to address an issue with subscription email notifications. In the meantime, be sure to check your favorite boards for new topics.

Pro/Toolkit : how can I set the background color?

Emilie
1-Newbie

Pro/Toolkit : how can I set the background color?

Hello,

I am using the Pro/Toolkit and I would like to change the background color in ProE 5.0. How can I do this? I don't see the right function to do this?

I only saw ProColormapAlternateschemeSet() but I can't set every color I would like...

I tried also :

ProColor old_g_color;

ProColor background;

background.method = PRO_COLOR_METHOD_RGB;

background.value.type = PRO_COLOR_BACKGROUND;

background.value.map.red = 1;

background.value.map.green = 0;

background.value.map.blue = 0;

ProGraphicsColorModify(&background, &old_g_color);

ProWindowRefresh (-1);

but it is not working... 😞

I also tried

ProColormap colors;

colors.red = 0;

colors.green = 0;

colors.blue = 1;


ProColormapSet(PRO_COLOR_BACKGROUND, &colors);

ProWindowRefresh (-1);

This last try seems to change the color when I go to View/Display Settings/System Colors. I can see that the color assigned to background changed but it is not really changing the background color...

Please help!

Thank you very much

Emilie


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
3 REPLIES 3
Emilie
1-Newbie
(To:Emilie)

Please, help!

Thank you

Emilie

Emilie
1-Newbie
(To:Emilie)

Hey guys,

No idea on that?

Thank you

Emilie

Emilie
1-Newbie
(To:Emilie)

I found it! :

char* p_option = "system_background_color";
char* color = "0 0 20"

ProName w_option;

ProName w_option_value;

ProStringToWstring(w_option_value, color);

ProStringToWstring(w_option, p_option);

err = ProConfigoptSet( w_option, w_option_value );


Top Tags