Border color max object

Théophile Rousic-Plantec's icon

Hi, I'm actually looking for a way to change the border colors on a newly created max object.
I tried to use this in the object_new function, but it doesn't seems to work. Does anyone as a clue on a way to do it ? Thanks !

object_attr_setvalueof(x, gensym("color"), 4, color);