Hello,
I've been trying to do the following and I need some advice:
In my application, one of my classes has a canvas feature used to display my
main window.
This same class (let's call it MainClass) has a method "display" which
displays other pictures using this canvas.
The pictures displayed represent each an instance of another class (let's
call this one PicClass) contained in a list which the MainClass's display
method uses as parameter.
So, the PicClass uses a method named "displaypic" which receives the
MainClass' canvas passed to it as parameter and uses it to show and move the
pictures (using a tag) on the MainClass' canvas.
Mainly the MainClass' display method looks like this:
meth display(L)
{ForAll L proc{$ X}
{X displaypic(self.canvas)}
end
}
while the displaypic method in the PicClass:
meth displaypic(Canvas)
Creation of a new image using QTk
Creating a tag using the parameter Canvas
end
This works perfectly fine. As a next step I tried to make my instances of
PicClass work on a remote site and nothing seems to work anymore (After
conducting many tests I've come to the conclusion that the problem is not
when creating instances but when trying to display them). My guess was that
since my instances were now running on another machine they can no longer
access the MainClass' canvas in order for them to display themselves on it
so I thought about using a ticket in order to make the MainClass's canvas
accessible.
Is my idea correct or not? If yes then how can I make it work? Otherwise, is
there a better way to do this or is it not possible?
Thanks a lot.
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users