LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to show scroll bars on Type Def

Solved!
Go to solution

Dear Coders,

 

Question:

Does anyone know how to view scroll bars on a Type Def window after they both have been turned off?

 

Background:

I have a several projects where scroll bars do not appear on some Type Defs. It's possible they may have been turned off by other programmers in the past. This prevents me from viewing the large clusters stored within and I have to physically move the cluster around which takes a long time. I can't find a way to turn them back on (assuming both have been turned off). 

 

You can reproduce my issue if you start with a new Type Def...

Ctl With Scroll Bars.PNG

 

Disable both scroll bars...

Turning off both scroll bars.png

Once the scroll bars are gone, how do you get them back? Using Control Properties>>Window Appearance will not allow the user to customize the scroll bars, and there is no longer a right click menu available because you need to right click the scroll bar itself.

 

For those working for Kudos, I can provide them 🙂 !

0 Kudos
Message 1 of 6
(4,328 Views)
Solution
Accepted by EricEvola

That is funny, I couldn't find a simple way to do it either!

 

You can try this snippet. Please back up your control before running it. Just browse the path constant to the location of your control and then run.

 

show scrollbars.png

Message 2 of 6
(4,315 Views)

Thanks for the suggestion. I created a new control saved it to my desktop, closed the control, used your code to point to the control, ran your code, re-opened my ctl file and the scroll bars remain unseen.  Did you successfully use this to restore the scroll bars on a ctl file?

0 Kudos
Message 3 of 6
(4,299 Views)

It works, but you need to leave the .ctl file open and then resave it.  You might note that there's no "Save" method called in his snippet, so it just opens the file, changes it, the immediately closes it without saving.

Message 4 of 6
(4,292 Views)

Of course. I should have noticed that. Thanks for clarifying.

0 Kudos
Message 5 of 6
(4,283 Views)

Thanks Kyle,

 

I only tested it quickly and my control file was open, so I didn't even notice!

0 Kudos
Message 6 of 6
(4,233 Views)