Page 2 of 2

Re: standard deviation

Posted: Tue Sep 04, 2012 8:44 am
by Ron L.
That can be accomplished with Dynamics.

Re: standard deviation

Posted: Wed Sep 05, 2012 3:38 am
by wlederer
Thank You very much Ron. Can we do the same with script?

Regards, Waldemar

Re: standard deviation

Posted: Wed Sep 05, 2012 8:34 am
by Ron L.
Once you setup the dynamic you can trigger it in script. (i.e. Globals.Tags.Tag1.SetAnalog(3); ).

Re: standard deviation

Posted: Wed Sep 05, 2012 8:39 am
by mark.monroe
Yes, the below will change the color of the Text1 TextBox when Button3 is clicked.

Code: Select all

		void Button3_Click(System.Object sender, System.EventArgs e)
		{
			this.Text1.FontColor = new BrushCF(Color.Aqua);
		}

Re: standard deviation

Posted: Thu Sep 06, 2012 7:46 am
by wlederer
Thank You very much Ron. Works fine.
Regards, Waldemar

Re: standard deviation

Posted: Thu Sep 06, 2012 7:54 am
by wlederer
Thank You much Mark for the answer.

When describing a button click event, after: this.Text11... could not find the option FontColor.
Is it because of something is not activated?
Regards, Waldemar

Re: standard deviation

Posted: Thu Sep 06, 2012 8:20 am
by mark.monroe
Not all of the available functions are displayed when you do a '.' after an object. some are not. I am not sure why they did this.

In my example the text box was called "Text1", 'this' simply means to use the current screen.

So "this.Text1" means use the text box called Text1 on the current screen.

I tested the FontColor button code I sent you in iX 2.0.

Re: standard deviation

Posted: Fri Sep 07, 2012 5:25 am
by wlederer
Thak You Mark. Where can I find all options?
Regards, Waldemar

Re: standard deviation

Posted: Fri Sep 07, 2012 8:03 am
by mark.monroe
There is no way to find all the options. You have to look at the iX Developer source code and we do not release that.

Hopefully in a future release of iX Developer scripting will have a better documentation system.