Last active
August 11, 2024 04:45
-
-
Save 201580ag/5fca6ef4f6f14a8f2becaf6de9dff39c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function renameComponents(c) | |
local i | |
if c.Component then | |
for i=0,c.ComponentCount-1 do | |
renameComponents(c.Component[i]) | |
end | |
end | |
if c.Caption then | |
c.Caption='ROST' | |
end | |
end | |
for i=0,getFormCount()-1 do | |
local form = getForm(i) | |
for j=0,form.ControlCount-1 do | |
renameComponents(form) | |
end | |
form.Caption='ROST' | |
end | |
registerFormAddNotification(function(f) | |
f.registerCreateCallback(function(frm) | |
renameComponents(f) | |
end) | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment