Skip to main content
MMerc.1
Associate III
March 12, 2020
Question

Set widget visible doesn't work properly

  • March 12, 2020
  • 1 reply
  • 515 views

Hi,

I have a problem when I want to make a widget visible.

This code works :

myStructure test;
widget.setVisible(test.state); // test.state = bool
widget.invalidate();

But this code doesn't work :

Container widget;
myStructure test;
 
switch (index)
{
case 0:
 widget = myWidget1;
 break;
...
}
 
widget.setVisible(test.state); // test.state = bool
widget.invalidate();

Do you have any idea why the second code doesn't work ?

This topic has been closed for replies.

1 reply

Martin KJELDSEN
Principal III
March 13, 2020

Are you hitting case 0? And is test.state what you think it is when you hit setVisible()?

/Martin