how to chek flags properties

Posted By: kombuwa

how to chek flags properties - 01/30/08 03:15

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.
Posted By: Fenriswolf

Re: how to chek flags properties - 01/30/08 08:08

Hello,

this should work:
Code:
if (map_pan.flags & VISIBLE) {
...


Posted By: kombuwa

Re: how to chek flags properties - 01/30/08 08:55

thanks a lot Fenriswolf.
now code is working.

thanks,

Code:

if(map_pan.flags & VISIBLE){
map_pan.flags &= ~VISIBLE;
}else{
map_pan.flags |= VISIBLE;
}


© 2023 lite-C Forums