B4J Question Preferences Dialog

Guenter Becker

Active Member
Licensed User
Longtime User
Hello,
To make myself clearer. I like to change this title of an option by code:

WINWORD_DkmcBtSIUY.png
 
Last edited:

Guenter Becker

Active Member
Licensed User
Longtime User
Sorry beeing back late had some PC troubles.
Your answer Erel did not meet my question. I think I have to ask more clearer. I don't want to change the options themselves! I only like to change the title right near the key from the otions by code to get a localized gui.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Your answer Erel did not meet my question. I think I have to ask more clearer. I don't want to change the options themselves! I only like to change the title right near the key from the otions by code to get a localized gui.
Your question in #1 does not meet your requirements! No single word about changing title localiced.
On the next programm start I am loading the values with KeyValueStore and I like to show this saved values as (last) selected option.
How can I do this?
That was your question. Erels anwer did gave you the solution to do so.
 
Upvote 0

Guenter Becker

Active Member
Licensed User
Longtime User
Your question in #1 does not meet your requirements! No single word about changing title localiced.

That was your question. Erels anwer did gave you the solution to do so.
That's why I made myself clearer. Instead of the comment it would help more to get the solution.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Hi:

Try this example


based on localizator

Try something like use loc.ForceLocale(Value) getting "Value" from your saved kvs value
 
Upvote 0

Guenter Becker

Active Member
Licensed User
Longtime User
Hi:

Try this example


based on localizator

Try something like use loc.ForceLocale(Value) getting "Value" from your saved kvs value
Sorry, this is an example that shows how to localize in general! I know that.
The only thing I like to know is how to change the title of an option of an preferences dialog by code (not the value).
This needed to show the strings on the dialog GUI in the desired language.
 
Upvote 0

teddybear

Well-Known Member
Licensed User
You have edited the post #1. I'll try to understand your thoughts.
The title of this item is option. Its value is in German. If I select the Italian value, the title should be opzione.
For PrefDialog, you can get the value of this item by key in the IsValid event.Then you can update the title of all items based on this value.
Meanwhile, you can also save these values into KVS for later.
Is my understanding correct?
ezgif-169e30f44dd219b0.gif
 
Upvote 0
Top