How can I ensure that the default colour for every manually drawn rectangle object is yellow till I change it manually?

 

I know how to set the colour of a rectangle object programmatically, as below. I want to set a default colour that every manually created rectangle is set to in such a way that I can change the colour after creating it. For example, every rectangle manually created is yellow but I can change it to say, blue. How can this be done?

ObjectSetInteger(0,name,OBJPROP_COLOR, clrAliceBlue);
 
The default is the last color. Create a blue one.
 
Jackery:

I know how to set the colour of a rectangle object programmatically, as below. I want to set a default colour that every manually created rectangle is set to in such a way that I can change the colour after creating it. For example, every rectangle manually created is yellow but I can change it to say, blue. How can this be done?

Files:
Reason: