LabVIEW 2021 Public Beta

cancel
Showing results for 
Search instead for 
Did you mean: 

[New Feature] Show Hidden Controls While Editing

To improve the experience of editing panels that have hidden controls/indicators, you can show them when editing a VI.

 

To use this feature, select Edit»Show Hidden Controls While Editing from the menu.

 

Hidden controls will appear annotated with an outline:

Christina_R_0-1618884993092.png

 

 

You can interact with hidden controls at edit time the same as if they were not hidden. They will automatically hide when the VI runs.

 

This feature originated from a suggestion submitted on NI Idea Exchange by NI Discussion Forums member tst.


Christina Rogers
Product Owner, LabVIEW R&D
Message 1 of 8
(388 Views)

Nice to see that it was implemented.

 

Some comments after some initial playing:

 

  1. I don't like the visual appearance. I feel it's too subtle and that maybe something like tinting or transparency would have been better (although presumably more processor intensive).
  2. I don't really like the toggling behavior. It's a bit hidden in the Edit menu, it's a bit weird that it's global (although I understand that's compatible with the grid alignment toggle) and I don't like that it's not persistent and resets when I restart LV.
  3. If the boolean text is outside the bounds of the boolean control, the border seems to wrap around it. See the attached VI.
  4. If you customize a hidden control and then apply the changes, the control becomes visible.

___________________
Try to take over the world!
Message 2 of 8
(224 Views)

How does this work when (hidden) controls overlap (shown controls)?

 

I have situations where two or more clusters overlap, and only one is shown to the user. I can now edit each cluster, by showing it, and hiding the other controls. But if the hidden controls are editable, that probably won't work anymore?

 

I'll test myself at some point... 

 

EDIT: We could really use dynamic control creation (and removal)...

Message 3 of 8
(161 Views)

@tst wrote:

Nice to see that it was implemented.

 

Some comments after some initial playing:

 

  1. I don't like the visual appearance. I feel it's too subtle and that maybe something like tinting or transparency would have been better (although presumably more processor intensive).
  2. I don't really like the toggling behavior. It's a bit hidden in the Edit menu, it's a bit weird that it's global (although I understand that's compatible with the grid alignment toggle) and I don't like that it's not persistent and resets when I restart LV.
  3. If the boolean text is outside the bounds of the boolean control, the border seems to wrap around it. See the attached VI.
  4. If you customize a hidden control and then apply the changes, the control becomes visible.

Thanks for the feedback! I'll discuss it with the R&D team.

 

One question, though... the Edit menu option should persist across restarts. Can you check to see if LabVIEW is able to write to the INI file on your system? Thanks!


Christina Rogers
Product Owner, LabVIEW R&D
0 Kudos
Message 4 of 8
(124 Views)

wiebe@CARYA wrote:

How does this work when (hidden) controls overlap (shown controls)?


When working with overlapping controls, you will probably want to turn off the visibility of hidden controls at edit-time.


Christina Rogers
Product Owner, LabVIEW R&D
0 Kudos
Message 5 of 8
(123 Views)

@Christina_R wrote:

One question, though... the Edit menu option should persist across restarts. Can you check to see if LabVIEW is able to write to the INI file on your system? Thanks!


LV is able to write. I had the line HiddenControlsVisibleWhileEditing=True in the ini file, but when I ran LV and opened the VI I uploaded, the control is hidden and the menu item is "Show Hidden...".

 

I then went and changed something in the settings (the blink time) and closed LV. The blinkSpeed line was updated with the new value, but the HiddenControlsVisibleWhileEditing line disappeared from the INI file.

 

It looks like this happens even when I don't change settings. Here's a timeline from now of actions I took and the value of the line in the INI file after taking the action. A hyphen means the line wasn't in the file:

 

Action Line in INI Hidden control is actually visible? Menu item
  -    
Open LV -    
Close LV -    
Open LV -    
Open the VI - No Show
Close the VI -    
Close LV -    
Open LV -    
Open the VI -    
Change to show - Yes Hide
Close the VI -    
Close LV True    
Open LV True    
Close LV -    
Open LV -    
Open the VI -   Show
Change to show - Yes Hide
Close the VI -    
Close LV True    
Open LV True    
Open the VI True No Show

___________________
Try to take over the world!
0 Kudos
Message 6 of 8
(34 Views)

@Christina_R wrote:

wiebe@CARYA wrote:

How does this work when (hidden) controls overlap (shown controls)?


When working with overlapping controls, you will probably want to turn off the visibility of hidden controls at edit-time.


🌴🙂 (palmface).

 

Yes, that would work. I guess move to front, move to back (CTRL+SHIFT+K\J) would work too.

0 Kudos
Message 7 of 8
(29 Views)

@tst wrote:

@Christina_R wrote:

One question, though... the Edit menu option should persist across restarts. Can you check to see if LabVIEW is able to write to the INI file on your system? Thanks!


LV is able to write. I had the line HiddenControlsVisibleWhileEditing=True in the ini file, but when I ran LV and opened the VI I uploaded, the control is hidden and the menu item is "Show Hidden...".

[...]

Thank you for the detailed report of the issue! The dev team believes this has been fixed for the release.


Christina Rogers
Product Owner, LabVIEW R&D
0 Kudos
Message 8 of 8
(4 Views)