2020-03-12 03:48 AM
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 ?
2020-03-13 05:15 AM
Are you hitting case 0? And is test.state what you think it is when you hit setVisible()?
/Martin