question

MorganVenandy-7841 avatar image
0 Votes"
MorganVenandy-7841 asked asergaz commented

how to disable/enable in C code?

Hi,

I would to know how to change status disable/enable of a button in C code to change his pixelmap.

Thanks.

Best Regards

azure-rtos
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @MorganVenandy-7841 ,
Can you confirm if the answer by @Viorel-1 helped you?

Thanks!

1 Vote 1 ·

Thank you for your answer, but I forgot to precise that is for azure rtos guix development.

0 Votes 0 ·
Viorel-1 avatar image
2 Votes"
Viorel-1 answered asergaz commented

Then try gx_widget_style_add and gx_widget_style_remove with GX_STYLE_ENABLED argument.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yes that exactly what i'm looking for.
Thanks

Sorry for the delay

Best Regards

1 Vote 1 ·
asergaz avatar image asergaz MorganVenandy-7841 ·

@MorganVenandy-7841 ,
Could you go ahead and mark the above as answer?

Thank you so much.

Remember:
- Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

0 Votes 0 ·
Viorel-1 avatar image
0 Votes"
Viorel-1 answered asergaz converted comment to answer

Maybe you should set or unset the GX_STYLE_ENABLED button's style, or use the enable_disable_widget function?


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your answer,

I didn't find any enable_disable_widget function in services description GUIX.

0 Votes 0 ·