Control the display of a combo box

Post beginners questions here. Don't be ashamed starting stupid topics.
Ответить
nando88
interested
interested
Сообщения: 4
Зарегистрирован: 04 сен 2011, 03:44
Версия LabVIEW: 10.1
Контактная информация:

Control the display of a combo box

Сообщение nando88 »

I want to display a combo box by selecting an item in another combo box.
Please tell me how to do this.
Thanks in advance!
Аватара пользователя
mzu2006

Professionalism Tutorials Black
doctor
doctor
Сообщения: 2456
Зарегистрирован: 16 авг 2008, 02:12
Награды: 3
Версия LabVIEW: 7.1 10 11 12
Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
Контактная информация:

Re: Control the display of a combo box

Сообщение mzu2006 »

Use visible property of the first combo box.
nando88
interested
interested
Сообщения: 4
Зарегистрирован: 04 сен 2011, 03:44
Версия LabVIEW: 10.1
Контактная информация:

Re: Control the display of a combo box

Сообщение nando88 »

How do I use the visible property?
What do I have to do in order to do this?
Аватара пользователя
mzu2006

Professionalism Tutorials Black
doctor
doctor
Сообщения: 2456
Зарегистрирован: 16 авг 2008, 02:12
Награды: 3
Версия LabVIEW: 7.1 10 11 12
Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
Контактная информация:

Re: Control the display of a combo box

Сообщение mzu2006 »

RMB on the first combo box. Create->property node->visible. When you wire "true" to the property node combo box will appear, when you wire "false" it will disappear.
nando88
interested
interested
Сообщения: 4
Зарегистрирован: 04 сен 2011, 03:44
Версия LabVIEW: 10.1
Контактная информация:

Re: Control the display of a combo box

Сообщение nando88 »

The thing is I want the second combo box to appear and display different items depending on the item I have selected in the first combo box. So it will have a value of "true", everytime I select an option from the first combo box, but the thing is it has to display a different set of options depending on the option I've selected first.
Is this possible?
Thanks in advance!
Аватара пользователя
mzu2006

Professionalism Tutorials Black
doctor
doctor
Сообщения: 2456
Зарегистрирован: 16 авг 2008, 02:12
Награды: 3
Версия LabVIEW: 7.1 10 11 12
Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
Контактная информация:

Re: Control the display of a combo box

Сообщение mzu2006 »

OK. Then you can modify "Strings" property right before you set your second combobox to be visible.
nando88
interested
interested
Сообщения: 4
Зарегистрирован: 04 сен 2011, 03:44
Версия LabVIEW: 10.1
Контактная информация:

Re: Control the display of a combo box

Сообщение nando88 »

How do I do that?
I'm new to labview and I just don't know how to set the second combo box visible when I choose an option from the first combo box.
Please tell me how to do this.
Thanks in advance!
Аватара пользователя
mzu2006

Professionalism Tutorials Black
doctor
doctor
Сообщения: 2456
Зарегистрирован: 16 авг 2008, 02:12
Награды: 3
Версия LabVIEW: 7.1 10 11 12
Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
Контактная информация:

Re: Control the display of a combo box

Сообщение mzu2006 »

Take a look here:
Comboboxes.png
Comboboxes.png (6.75 КБ) 10173 просмотра
Вложения
Comboboxes.vi
(10.78 КБ) 463 скачивания
Ответить
  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «For beginners»