cancel
Showing results for 
Search instead for 
Did you mean: 

Set widget visible doesn't work properly

MMerc.1
Senior

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 ?

1 REPLY 1
Martin KJELDSEN
Chief III

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

/Martin