Last active
August 11, 2024 04:45
-
-
Save 201580ag/5fca6ef4f6f14a8f2becaf6de9dff39c to your computer and use it in GitHub Desktop.
Revisions
-
201580ag revised this gist
Jul 30, 2024 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ function renameComponents(c) end if c.Caption then c.Caption='ROST' end end @@ -18,7 +18,7 @@ for i=0,getFormCount()-1 do renameComponents(form) end form.Caption='ROST' end registerFormAddNotification(function(f) -
201580ag created this gist
Jul 30, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ 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='xxx' end end for i=0,getFormCount()-1 do local form = getForm(i) for j=0,form.ControlCount-1 do renameComponents(form) end form.Caption='yyy' end registerFormAddNotification(function(f) f.registerCreateCallback(function(frm) renameComponents(f) end) end)