Page 1 of 1

How can I set this option in code?

Posted: Wed Feb 19, 2014 11:48 am
by PJoyeux
Hi,

I am looking for a way to set the following option via code:
Bild 3.png
Bild 3.png (44.35 KiB) Viewed 2082 times
I have found the class "StiDesignerInfo" which has the property "RunDesignerAfterInsert" but I don't know how to access and set this property...

Can you help me?

Cheers,
Pascal

Re: How can I set this option in code?

Posted: Thu Feb 20, 2014 7:48 am
by HighAley
Hello.

There is no static option for this setting.

You can do it with next code:

Code: Select all

StiSettings.Load();
StiSettings.Set("StiDesigner", "RunDesignerAfterInsert", true);
StiSettings.Save();
Thank you.

Re: How can I set this option in code?

Posted: Thu Feb 20, 2014 8:19 am
by PJoyeux
Worked, thank you!

Didn't know about these non-static settings...

Cheers,
Pascal

Re: How can I set this option in code?

Posted: Thu Feb 20, 2014 12:02 pm
by HighAley
Hello.

We are glad to help you.
You could set any settings this way, if you know its name.

Thank you.