From: Doug M. <do...@cr...> - 2000-11-28 22:04:52
|
submenuobject = new menuobject ? ----- Original Message ----- From: "Holger Zantl" <h....@at...> To: <dyn...@li...> Sent: Tuesday, November 28, 2000 1:09 PM Subject: [Dynapi-Help] making object copy not reference > Hi, I try to make a menu widget and now I have the Problem that I need > a copy of an object for the submenus, but a simple > "submenuobject = menuobject" references the original object so that any > changes I make to the submenu are made to the parent menu as well. > > Is there a way to make a copy of an object or do I have to build a > new object and copy each value to it, which would heavily increase the > size of the widget? > > for the object functions it's not a big problem, since they're static, > but at the point where I need the copy there may be a lot of changes > done to the properties. > > I hope I wrote understandable > > Yours, Holger > > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help |