Yes, it's possible to define 2 aliases with the same name in 2 different toplevels.

Then, you can refer to them using the toplevel name, like:

.top19.MyButton

or, if the toplevel has an alias, use:

MyToplevel.MyButton

There are still some problems copying/pasting compounds with aliases. There
is more work to do and it is now partially working (I made some changes today).
You can now copy/paste a widget in the same toplevel and it should not reuse
the same alias, but this is not completely working (it should be soon).

The idea is:

- if a widget is copied/pasted and already has an alias, if it is pasted into a
different toplevel, the same alias is reused, otherwise, if the widget is pasted
into the same toplevel, it will use a new automatic alias

- if a widget is copied/pasted and doesn't have an alias, and the "Use auto-
aliasing for new widgets" option is turned on, the widget is pasted using
a new automatic alias

- if a widget is copied/pasted and doesn't have an alias, and the "Use auto-
aliasing for new widgets" option is turned off, the widget is pasted without
an alias

CG

Stef Pillaert wrote:

> Op vr, 23 mrt 2001, schreef u:
> > Am Donnerstag, 22. März 2001 09:09 hast du geschrieben:
> > >
> > > Anyway, I see the advantages of using the place manager now (I saw the
> >
> > I hope you wanted to say "disadvantages"!
> >
> Oops, exactly. And indeed, the default on my vtcl is now the packer.
>
> Anyway, I'm changing a lot of my projects, by cutting and pasting all the
> widgets (I used almost always the aliases, so my code didn't change much, just
> some scrollbars had to be changed)
>
> By doing this, I noticed it is possible to give an existing alias to another
> widget. This seem to lead to some strange situations/errors in some cases (can't
> remember exactly what I did, but it surely involved some deleting of one of the
> two widgets with the same alias...) Maybe there should be some checking for
> re-using an alias?
>
> Stef.
>
> _______________________________________________
> vtcl-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/vtcl-user


_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to