When using copy-and-paste with the forms designer, the
newly created copies have impossible names - for
example, a copied static text control might get the
name ".StaticText1", with a leading dot. The dot, of
course, causes no end of trouble. When working with
just one control at a time this is not too bad, but
when copying large numbers of controls, it is easy to
forget one and end up with incorrect code that confuses
boa (not to mention the programmer!). A better
solution would be to simple give default names (such as
"staticText2"), or even better, to give names based on
the original names but with, say, "_1" attached, with
an incrementing number.
I've been looking through the
DesignerView.OnPasteSelectected and the
InspectableObjectView.pasteCtrls methods, but I'm
afraid I can't figure out how the new names are
generated, and therefore how to change them - I'm also
unsure of whether name changes here would cause
side-effects in the rest of boa. But if anyone with
more boa experiance has an idea for a fix, I'm happy to
try it out.