hi,
please tell me how to check flages properis.

like panel visible or not .
i have try this code but did not worked.
Code:
 
if(map_pan.VISIBLE == ON){
map_pan.flags &= ~VISIBLE;
}else{
map_pan.flags |= VISIBLE;
}


pls help me.