LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Listbox with image

Solved!
Go to solution

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

Download All
0 Kudos
Message 1 of 13
(2,316 Views)

Right-click the listbox; select Visible Items -> Symbols

Create an invoke node; select Custom Item Symbols ... 

"If you weren't supposed to push it, it wouldn't be a button."
Message 2 of 13
(2,298 Views)

You can apparently show the symbols and set custom images for the symbols. (details). I have not tried this myself.

0 Kudos
Message 3 of 13
(2,295 Views)

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

0 Kudos
Message 4 of 13
(2,276 Views)

Hi altenbach,
I'm looking at the details but I haven't read them yet, I didn't understand everything.
Thanks

0 Kudos
Message 5 of 13
(2,275 Views)
Solution
Accepted by topic author Ngouda

Here

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 6 of 13
(2,242 Views)
Solution
Accepted by topic author Ngouda

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)

0 Kudos
Message 7 of 13
(2,235 Views)

@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:

paul_cardinale_0-1677527102897.png

Might get a better result starting with larger flags.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 8 of 13
(2,212 Views)
Solution
Accepted by topic author Ngouda

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.

Greets, Dave
0 Kudos
Message 9 of 13
(2,178 Views)

Good morning Paul_cardinale,
Thanks you for your answer
Have a good day

0 Kudos
Message 10 of 13
(2,171 Views)