Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Selected language and screen update
PostPosted: Fri Mar 13, 2020 1:45 am 

Joined: Fri Mar 13, 2020 1:01 am
Posts: 1

Offline
Hi,

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:
      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);
           this.Refresh();
         
      }
   
   
      void butt_Click(System.Object sender, System.EventArgs e)
      {
         Globals.Tags.TEST_TAG.Value = 2;
         highlight_selected();
      }
      


 Profile  
 
 Post subject: Re: Selected language and screen update
PostPosted: Thu Mar 26, 2020 12:00 pm 
User avatar

Joined: Thu Nov 16, 2017 3:32 pm
Posts: 201

Offline
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:
Attachment:
language_settings.png
language_settings.png [ 22.96 KiB | Viewed 17 times ]

And it references this index number:
Attachment:
language_index.png
language_index.png [ 15.67 KiB | Viewed 17 times ]


As for your code, does it work for you if you run or simulate on a PC?

_________________
Best regards,

Russ
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron