Can i get information from a dictionary in a list of checkboxes?

hello,
i try to create a list with checkboxes, and the list need to be different every time depend on the button that was pressed.



but i found its hard to take the data from the dict, so i added lists, and do not find a good way to get the data from the value of the dict to the label in pic 2.

is there a better way to take data from "index" in a dict ? and insert it in the labels ?

What you are trying to do is called multiselect.

Here's one way to do it, using lists:

Here's another:

P.S. Before going further, it is wise to rename Designer components to indicate their function and type, like btnCastSpell instead of Button23.
That will make the blocks much easier to follow and debug.

Also, if you use generic events, it is wise to include an ifNotAlreadyHandled test around your code, in case you want to add more of those component type with different purposes later on.

Are you thinking of a Nested List Picker?

You can make a multi-select checkbox list with various extensions:

Tableviewer
CompCreator
Image Listview

yes im looking for something similar, just for buttons, when i press a button i get a different list.

thanks for help, i will test and see this options.