Set widget visible doesn't work properly
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-03-12 3: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 ?
Labels:
- Labels:
-
TouchGFX
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-03-13 5:15 AM
Are you hitting case 0? And is test.state what you think it is when you hit setVisible()?
/Martin
