LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

collapsible code un-collapse in CVI 8.5

Hello,
 
I think the collapsible code region is a great improvement in CVI 8.5. Unfotunably I find that in several instances the code regions un-collapse by them self. This is very annoying and renders the collapsible code feature quite useless.
 
Is any one experiencing this problem? Is there a way to fix it?
 
Thanks . EP
0 Kudos
Message 1 of 4
(3,486 Views)
Hello,
thank you for your feedback on the collapsible region feature.

To answer your question, the collapsible regions are recognized as the user types. If the user introduces an inconsistency in the code (let's say deletes a curly brace) which makes a region invalid, that region will disappear. And if it was previously collapsed, it must be expanded.

Also, regions are expanded in other cases, when for example a breakpoint is hit or text search hits inside a collapsed region.

If you are having a real problem with your regions expanding on their own, please give us more details and we will look into it.

Best regards
LDP
0 Kudos
Message 2 of 4
(3,463 Views)
try this case
 
Collapse all function in source file *.c, save it, close the tab. Open it by double clicking in the tree view, all collapse regions are expanded.
 
 
 
0 Kudos
Message 3 of 4
(3,434 Views)
Hello,

I see what you mean now. However, that behavior is by design.
LabWindows/CVI does not keep collapsible region information after a file is closed. So once the file is reopened, the collapsible regions appear newly and are expanded by default.

A workaround for this would be to collapse all regions after you open a source file. You can do so from menu View >> Collapsible Regions >> Collapse All or you can right click on the collapsible region bar in the source window and select Collapse All. You can even assign a shortcut to those menu items, if you wish.

Best Regards
LDP
0 Kudos
Message 4 of 4
(3,424 Views)