Skip to main content
DPutr.1
Associate II
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

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

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

Hello Oskt,

Thank you for the answer very helpful

Osman SOYKURT
ST Technical Moderator

You're welcome :)

ST Software Developer | TouchGFX