objects in guiserver
-
- Posts: 2038
- Joined: Tue Nov 29, 2005 8:28 pm
- Location: latiitude 50N longitude 3W
- Contact:
objects in guiserver
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.
-
- Posts: 15
- Joined: Sun May 10, 2009 3:11 am
-
- Posts: 2038
- Joined: Tue Nov 29, 2005 8:28 pm
- Location: latiitude 50N longitude 3W
- Contact:
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.
I've forgotten what I was trying to do, now...:)
I'm pretty sure the answer's not macros, though.