cancel
Showing results for 
Search instead for 
Did you mean: 

setVisible() and invalidate() aren't work when they are in if/switch~case statement.

emi1123
Visitor

emi1123_0-1751247172566.png

I made some containers in 1 screen. (please refer to attached image)

I wanted to handle these containers depends on h/w key.

e.g. temp key is pressed, all of the containers in HDT_POPUP_GRAPHIC_SCREEN must be disabled. only

main_graphic_temp_container will be showed up.

 

However, 

main_graphic_temp_container.setVisible(true);
main_graphic_temp_container.invalidate();

doesn't work normally, when these codes are in the switch~case statement.

emi1123_1-1751247431430.png

 

I tried to move these codes to the end of the setupScreen(), not in the switch~case statement.

In that case, 

main_graphic_temp_container.setVisible(true);
main_graphic_temp_container.invalidate();

works normally.

Am I wrong to use these two (setVisible, invalidate) methods?

 

 

0 REPLIES 0