Multiple Flags

Hi again.

I have a button which by default I have set to be pt_ghost and pt_blocked. I now wish to turn these off in the code when something happens. How do I do this?

I was thinking something like:

PtSetResource(Ptr_Button, Pt_ARG_FLAGS, ~(Pt_BLOCKED | Pt_GHOST) , 0);

Any ideas?

Cheers … l#SetFlags

Cheers mezek. I did try to find something like that, but fail obviously.

Thanks again

PtArg_t arg; PtSetArg(&arg, Pt_ARG_FLAGS, Pt_FALSE, Pt_BLOCKED | Pt_GHOST); PtSetResources(Ptr_Button, 1, &arg);