I can use the following to change a single shape brush to white, "Shape1->Brush->Color=clWhite;" but if I have say 10 shapes is there a easy way to change them all at once???
You are on the right track, the one step you forgot was to use the components property of the form, therefore your code would look something like this.
for(i=1;i<=count;i++)
{
if Components.ClassNameIs("TShape"
Components->Brush->Color = clwhite;
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.