I'm probably missing out on a glass of water, there is the possibility of change at "run-time" a property of a pixelmap_button.I need at start time the pixelmap_button appears disabled and after a certain time enabled, is it possible?
thanks in advance
In order to do this, you will first need to get a GX_PIXELMAP_BUTTON or GX_WIDGET pointer for the button. The simplest way to do it is following:
GX_WIDGET * p_button;
gx_system_widget_find(YOUR_BUTTON_ID, GX_SEARCH_DEPTH_INFINITE, &p_button);
Widget re-drawing should be triggered automatically after this API call.
I assume this is for GUIX?
In GUIX studio uncheck the 'Enabled' property for the button for it to start out disabled, and assign your disabled pixelmap using the 'Disabled Pixelmap' property. Assign the enabled pixelmap using the 'Normal Pixelmap' property.
To change the enabled state at runtime use the GX_STYLE_ENABLED style flag. 'Or' this value in with the existing style flags to preserve the other flags.
status = gx_widget_style_get(&my_window.my_pixelmap_button, &style);
status = gx_widget_style_set(&my_window.my_pixelmap_button, style | GX_STYLE_ENABLED);
Didn't see Karol's post. I guess the gx_widget_style_add() does the same thing as the last two instructions I suggested.
In reply to Gerald:
thank you very much for your help, your solution works very well for my needs.
In reply to ghg:
please see my answer in your another thread on this issue:https://renesasrulz.com/synergy/f/synergy---forum/10808/an-issue-with-the-inability-to-import-pixelmap-ids-for-pixmaps-into-e2-studi/36976#36976