W
Wonko the Sane
Hi All,
I have the following (much-simplified) situation. I have a class, part of
which involves drawing graphics on a Canvas. I may have a number of
instances of these graphics, which may include a line, two rectangles used as
endpoints, and perhaps a label for the line.
I want to somehow later associate a graphic on the canvas with an instance
of the class. For instance, if the user selects an endpoint and drags it, I
want to resize the line, and perhaps update some information in a database
based on that resize.
I'm just looking for a graceful way to do this. I have a solution, but it
seems inelegant. Any advice or a pointer to an example would be
appreciated...
Thanks.
I have the following (much-simplified) situation. I have a class, part of
which involves drawing graphics on a Canvas. I may have a number of
instances of these graphics, which may include a line, two rectangles used as
endpoints, and perhaps a label for the line.
I want to somehow later associate a graphic on the canvas with an instance
of the class. For instance, if the user selects an endpoint and drags it, I
want to resize the line, and perhaps update some information in a database
based on that resize.
I'm just looking for a graceful way to do this. I have a solution, but it
seems inelegant. Any advice or a pointer to an example would be
appreciated...
Thanks.