Panel Not Hiding

Posted By: 3Dski

Panel Not Hiding - 10/18/07 22:46

My code is very similar to a panel tutorial... only a panel with some buttons, and some functions connected to the buttons. I've connected a function to one of the buttons that is meant to turn VISIBLE off:

main_menu.flags &= ~VISIBLE;

I've used this, and tried both toggle and reset macros, but the panel is not removed from the screen. Any pointers on what I'm missing on getting the screen to refresh when a turn panel visibility off?
Posted By: MrCode

Re: Panel Not Hiding - 10/18/07 23:08

Could you post your code here? It may be something in one of your other functions.
Posted By: Slin

Re: Panel Not Hiding - 10/18/07 23:35

reset the screen_color after making the panel invisible or place a panel or level behind the others
Posted By: 3Dski

Re: Panel Not Hiding - 10/19/07 00:08

Moral of the story... and I ran into this a long time ago...

!!! IF YOUR SCREEN COLOR IS BLACK, THE PANEL WILL NOT DISAPPEAR WHEN VISIBILITY IS TURNED OFF !!!

Thanks for your time and suggestions!
© 2024 lite-C Forums