PANEL* your_panel =
{
button(.......,button_click_function,.....);
bla bla ....
flags = SHOW|OVERLAY;
}
function button_click_function()
{
your_panel.flags = OVERLAY;
}
clearly, flags parameters are changeable with another function.
hope it helps
your_panel.flags = OVERLAY will overwrite any other flags...
use your_panel.flags & SHOW; to set a panel visible
or set(your_panel, SHOW);
use reset(pnl, flag) to disable
or toggle(pnl, flag) to... well... toggle
