Page 1 of 1
Text field: brush color (background color)
Posted: Tue Aug 28, 2007 5:31 am
by Fabio Pagano
I was wondering why the default background color of a field is "10% Gray". Couldn't it be white or transparent? May i change this default when i invoke (by code) the designer?
Thanks.
Text field: brush color (background color)
Posted: Tue Aug 28, 2007 6:29 am
by Guest
The default background color of the textbox is that you choose the last time. So set the color what you want and it must been saved as the default color.
Thank you.
Text field: brush color (background color)
Posted: Wed Aug 29, 2007 7:20 am
by Fabio Pagano
Don't know if i'm missing something, but i have created a text field, i've setted the brush "Empty", closed, reopened, created a new text field but the brush always defaulted to "Solid" instead of the last choosen "Empty".
Text field: brush color (background color)
Posted: Thu Aug 30, 2007 9:46 am
by Edward
Please use the following property to avoid the behavior which was described above:
Code: Select all
report.Info.UseLastFormat = false;
Thank you.
Text field: brush color (background color)
Posted: Thu Aug 30, 2007 5:39 pm
by Fabio Pagano
Sorry but didn't solve, this is the code:
Code: Select all
Dim rpt As New Stimulsoft.Report.StiReport
rpt.Info.UseLastFormat = False
rpt.Design()
I've also tried
with no success.
When i draw a text field, it is created with the default brush "Solid". I change to "Transparent". Then if i draw another text field, the brush is "Solid" and not the last one used ("Transparent"). Using build of 23 august.
Thanks.
Text field: brush color (background color)
Posted: Fri Aug 31, 2007 4:05 am
by Edward
in that case please put this lines in the start of your Application:
Code: Select all
StiSettings.Load();
StiSettings.Set("StiDesigner", "UseLastFormat", false);
StiSettings.Save();
Thank you.