Has Caption Property
- jane_wild
- master
- Сообщения: 459
- Зарегистрирован: 30 июн 2016, 02:11
- Версия LabVIEW: 2020
- Благодарил (а): 83 раза
- Поблагодарили: 15 раз
- Контактная информация:
Has Caption Property
Вопрос может показаться странным, но все же. У контрола есть свойство Caption. Воспользовавшись Has Caption Property Можно определить есть ли у контрола заголовок. Соответственно что бы свойство вернуло истину, нужно заголовок сделать видимым - ПМК -> visible Item -> Caption. Вот значит сделали мы caption видимым. Это свойство возвращает истину вне зависимости Caption видимый или нет, ведь он уже создан. Вопрос как его удалить? Вот поместила я на FP контрол, проверила свойство - заголовка нет Has Caption Property=false (по умолчанию), сделала заголовок видимым - проверила свойство Has Caption Property=true. Теперь как не удаляя контрол с FP, сделать так что бы Has Caption Property вернуло false?
-
Vasiliy Baev
- leader
- Сообщения: 545
- Зарегистрирован: 31 окт 2011, 09:02
- Награды: 4
- Версия LabVIEW: 2019
- Откуда: Санкт-Петербург
- Благодарил (а): 9 раз
- Поблагодарили: 10 раз
- Контактная информация:
Re: Has Caption Property
Нет возможности проверить, так что проверьте Вы сами: записать пустую строку (const) в свойство контрола Caption.Text (PropertyNode) и сделать Caption.Visible = false.
-
- leader
- Сообщения: 932
- Зарегистрирован: 17 янв 2016, 15:02
- Награды: 1
- Версия LabVIEW: 6.1,8.5,20
Re: Has Caption Property
Deleting a Caption
In older LabVIEW versions, there was no easy way to delete the caption of a control/indicator. Thankfully, in LabVIEW 8.2 and later, it is very easy. All you need to do is select the caption with your selection tool and press the 'Delete' key on your keyboard. Note that this is not the same as highlighting the text in the caption and pressing the 'Delete' key...if you do that, the control will still have a caption, but it will be an empty string.
http://labviewartisan.blogspot.com/2012 ... ed-to.html
In older LabVIEW versions, there was no easy way to delete the caption of a control/indicator. Thankfully, in LabVIEW 8.2 and later, it is very easy. All you need to do is select the caption with your selection tool and press the 'Delete' key on your keyboard. Note that this is not the same as highlighting the text in the caption and pressing the 'Delete' key...if you do that, the control will still have a caption, but it will be an empty string.
http://labviewartisan.blogspot.com/2012 ... ed-to.html
- jane_wild
- master
- Сообщения: 459
- Зарегистрирован: 30 июн 2016, 02:11
- Версия LabVIEW: 2020
- Благодарил (а): 83 раза
- Поблагодарили: 15 раз
- Контактная информация:
Re: Has Caption Property
Спасибо. Решение оказалось простым.
Вот в этом и была моя ошибка.Note that this is not the same as highlighting the text in the caption and pressing the 'Delete' key...