Skip to content

Instantly share code, notes, and snippets.

@201580ag
Last active August 11, 2024 04:45
Show Gist options
  • Save 201580ag/5fca6ef4f6f14a8f2becaf6de9dff39c to your computer and use it in GitHub Desktop.
Save 201580ag/5fca6ef4f6f14a8f2becaf6de9dff39c to your computer and use it in GitHub Desktop.
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