Page 1 of 1
objects in guiserver
Posted: Thu Jan 22, 2009 7:05 pm
by cormullion
What's the best way to do this task? I want to place three or four copies of a graphical object onto a canvas, each one behaving slightly differently, but using the same code basic code. I don't think I can use FOOP-style objects, because they aren't modifiable (so I couldn't vary key parameters). Also, the objects need to be drawn once at the start, then modified continually in response to events.
Posted: Mon May 11, 2009 4:06 am
by shercipher
In CL the answer would be macros. In NL I'm pretty sure the answer is still macros. What exactly are you trying to accomplish (explain)?
Posted: Mon May 11, 2009 4:34 pm
by cormullion
While I understand (basically :)) the FOOP approach, and use guiserver a lot, I can't work out how to do both at the same time. How to define an object and its behaviour, then to place multiple instances of that object on a canvas.
I've forgotten what I was trying to do, now...:)
I'm pretty sure the answer's not macros, though.