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

Attachment: remote3.oz
Description: Binary data

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to