02-27-2023 08:59 AM
Hello dear all,
I would like to make a language listbox with images as shown in the figure below.
Is it possible to do it?
Can you please show me?
Thanks in advance
Solved! Go to Solution.
02-27-2023 09:39 AM
Right-click the listbox; select Visible Items -> Symbols
Create an invoke node; select Custom Item Symbols ...
02-27-2023 09:42 AM
You can apparently show the symbols and set custom images for the symbols. (details). I have not tried this myself.
02-27-2023 10:17 AM
Hi Paul-Cardinale,
I tried to follow what you told me but I can't.
Can you show me just the first item and I can continue please?
Thanks
02-27-2023 10:18 AM
Hi altenbach,
I'm looking at the details but I haven't read them yet, I didn't understand everything.
Thanks
02-27-2023 12:30 PM
Here
02-27-2023 12:45 PM
Also note that the images will be scaled down to 16x16 pixels, so your flags are not really suitable for this.
(You could implement the entire thing as a big 2D picture, but that would require quite a bit of backend code to format the list and parse e.g. mouse clicks and such)
02-27-2023 01:45 PM
@altenbach wrote:
Also note that the images will be scaled down to 16x16 pixels, so your flags are not really suitable for this.
(You could implement the entire thing as a big 2D picture, but that would require quite a bit of backend code to format the list and parse e.g. mouse clicks and such)
Scaling down his image so the flags fit in 16x16, looks like this:
Might get a better result starting with larger flags.
02-28-2023 03:29 AM - edited 02-28-2023 03:31 AM
Yes, my experience is it looks nicer when you use 32x32 Px images, they are nicely scaled down.
P.S. As a hint, the index at the "index" input (in the link provided by altenbach) corresponds to the symbol ring constant in the Dialog & User interface palette. If you don't want to interfere with these built in symbols, use an index greater 42.
02-28-2023 03:33 AM
Good morning Paul_cardinale,
Thanks you for your answer
Have a good day