687 views
in Embedded Wizard Studio by
Hi,

I have a Vertical List that I want to update on the change of language.

I have the style updating fine in the HandleEvent method but when I try to use the language event in the same way it always returns a null.

var Core::LanguageEvent
langEvent = (Core::LanguageEvent)aEvent;

trace langEvent;

Any ideas?

Thanks

Phil

1 Answer

0 votes
by
I have solved it but not necessarily the correct way.

Previously I was setting the language by:

   language = French; (For example)

But to trigger the HandleEvent and get a good signal to LanguageEvent I have to set the language by:

  GetRoot().Language = French;

 

Is this bad practice?
by

Hi Phil.

this is the correct way to trigger explicit the LanguageEvent - otherwise, just assigning the new value to the global build-in variable language will not broadcast the event - as you already found out.

Alternatively, you can implement your own ReInit() constructor within your class and react on the language changes according your needs.

Best regards,

Manfred.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...