Sorry, you actually want to hide the scripts.
As Joachim mentioned, there is an old ‘Hidescripts.exe’ program that will lock the script buttons as shown in your image.
It is very old (still works) and I think it can be found in the library developers kit (but I am not 100% sure).
It is no longer needed now as the GDL objects have an option to set a password when saving.
The objects can only then be opened with that password – so don’t lose it or keep a copy of the original object saved without a password.
Versions 6.5 to 22
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit