Selected language and screen update

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
Posts: 1
Joined: Fri Mar 13, 2020 1:01 am

Selected language and screen update

Post by IXdevUser »


I have 2 questions about the scripting feature of ix dev.

I have 4 languages in my project. I need to recognize the selected language, based on that some information on the screen is changing. How to get the status of current languages?

The screen does not change on a single click?
when I click the button the first time, only the tags value is changing. i have to click again to change the font color?

Code: Select all

		private void highlight_selected ()
		// change button font color
		but_pump1.FontColor = new BrushCF(Color.Black);
		but_pump2.FontColor = new BrushCF(Color.Black);
		but_auto.FontColor = new BrushCF(Color.Red);
		void butt_Click(System.Object sender, System.EventArgs e)
			Globals.Tags.TEST_TAG.Value = 2;

User avatar
Russ C.
Posts: 213
Joined: Thu Nov 16, 2017 3:32 pm

Re: Selected language and screen update

Post by Russ C. »

You can assign a tag to determine which Language is currently selected under Multiple Languages -> Languages tab -> Settings.

I created a tag called My_Current_Language_Tag and assigned below:
language_settings.png (22.96 KiB) Viewed 399 times
And it references this index number:
language_index.png (15.67 KiB) Viewed 399 times
As for your code, does it work for you if you run or simulate on a PC?
Best regards,

(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB

Post Reply