Per-Anders
01-22-2005, 11:50 PM
Just thought i'd start a thread where people can share their useful little bits and bobs of COFFEE
And to start off here's a little one that simply makes sure the object it's on isn't selectable.
main(doc,op)
{ if (op->GetBit(BIT_AOBJ)) { // Is the object selected op->DelBit(BIT_AOBJ); //deselect it
GeEventAdd(REDRAW_ALL); //update the view
}
}
use the COFFEE tags own Enable checkbox to turn on/off the behaviour.
And to start off here's a little one that simply makes sure the object it's on isn't selectable.
main(doc,op)
{ if (op->GetBit(BIT_AOBJ)) { // Is the object selected op->DelBit(BIT_AOBJ); //deselect it
GeEventAdd(REDRAW_ALL); //update the view
}
}
use the COFFEE tags own Enable checkbox to turn on/off the behaviour.
