12-02-2015 05:13 PM - edited 12-02-2015 05:19 PM
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...
Disable both scroll bars...
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 🙂 !
Solved! Go to Solution.
12-02-2015 05:47 PM - edited 12-02-2015 05:49 PM
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.
12-02-2015 06:44 PM
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?
12-02-2015 07:01 PM
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.
12-02-2015 07:07 PM
Of course. I should have noticed that. Thanks for clarifying.
12-03-2015 09:28 AM
Thanks Kyle,
I only tested it quickly and my control file was open, so I didn't even notice!