#include boolean value = false; persist(value); float w = OLCheckBoxW; float h = OLCheckBoxH; boolean fixedwidth = true; boolean fixedheight = true; float preferredwidth = OLCheckBoxW; float preferredheight = OLCheckBoxH; void action() { setvalue(!value); Send Action(value); } void PaintButton(boolean down) { OLCheckBox(value,down); } void setvalue(boolean val) { if (val != value) { value = val; gexec(/Paint); } }