Skip to main content
DPutr.1
Associate II
Jun 8, 2022 12:24 PM UTC
Solved

How to Make Button Visible?

i use button.setvisible(bool) function but it doesn't happen accordingly. is there an example of how to do it?

This topic has been closed for replies.
Osman SOYKURT
Osman SOYKURTBest answer
ST Technical Moderator
Jun 8, 2022 2:22 PM UTC

Hello DPutr.1,

I think you use the function correctly, but maybe you just forget to call the invalidate function after ?

something like:

button1.setVisible(TRUE);
button1.invalidate();

/Osman

ST Software Developer | TouchGFX

3 replies

Osman SOYKURT
Osman SOYKURTBest answer
ST Technical Moderator
Jun 8, 2022 2:22 PM UTC

Hello DPutr.1,

I think you use the function correctly, but maybe you just forget to call the invalidate function after ?

something like:

button1.setVisible(TRUE);
button1.invalidate();

/Osman

ST Software Developer | TouchGFX
DPutr.1
DPutr.1Author
Associate II
Jun 9, 2022 3:48 AM UTC

Hello Oskt,

Thank you for the answer very helpful

Osman SOYKURT
ST Technical Moderator
Jun 9, 2022 7:16 AM UTC

You're welcome :)

ST Software Developer | TouchGFX