Page 1 of 1

Alter color from StiPanel object

Posted: Tue Jul 14, 2015 12:40 pm
by rafaelwithoeft
Hello, i want to change color of StiPanel by Java code.
I looked in the report designer and it has a "Brush" properties, but on the java class not have one method "SetColor" on "StiBrush" or equivalent.

How i do this?

Thank you

Re: Alter color from StiPanel object

Posted: Tue Jul 14, 2015 1:07 pm
by HighAley
Hello.

It is impossible to change brush. The StiBrush is base class. You should convert it to StiSolidBrush and change the Color.
Or you could create a new instance of the StiSolidBrush object and assign it to the StiPanel.

Thank you.

Re: Alter color from StiPanel object

Posted: Tue Jul 14, 2015 1:32 pm
by rafaelwithoeft
Thank you!

Re: Alter color from StiPanel object

Posted: Wed Jul 15, 2015 6:03 am
by Vladimir
Hello,

We are always glad to help you!

Thank you.