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

To add comments, please log in or register
Jackery
92
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?

ObjectSetInteger(0,name,OBJPROP_COLOR, clrAliceBlue);
William Roeder
20208
William Roeder  
The default is the last color. Create a blue one.
Ernst Van Der Merwe
6660
Ernst Van Der Merwe  
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:
To add comments, please log in or register