Hello, I adapted the code you gave me to the one I had and it worked like a charm (just like you said without MakeStat move doesn't work but when added everything works perfectly). Thanks a lot I couldn't have done it without your help.
2010/8/25 Wolfgang Meyer <[email protected]> > Hi, > > On Aug 25, 2010 6:13pm, Khadija EL MAHRSI <[email protected]> > wrote: > > Hello, > > do you think that if I create the image in the MainClass and pass its tag > to the PicClass as parameter I will be able to use "move" > > on this tag and have it move on my main GUI? > > No, this will not work (I just did a small test.) > However, if you wrap the tag as a stationary object, it does work (see > attached example). > > Does the PicClass have a reference back to the MainClass? If yes, you > could alternatively create a method in MainClass: > > meth moveTag(Tag X Y) > {Tag setCoords(X Y)} > end > > This would work because MainClass is stationary object. In this way > you could keep all QTk code in MainClass which would be a cleaner > design. > > Cheers, > Wolfgang > > > _________________________________________________________________________________ > mozart-users mailing list > [email protected] > http://www.mozart-oz.org/mailman/listinfo/mozart-users >
_________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
