Hi all,
I have a custom shape class, it has added properties and methods. These are dynamically created in the application, I am now looking at adding some additional detail to the shape in the GUI. I want to add a couple of labels that will display information about the shape, so was looking at creating a custom class based on a container, dropping in the custom shape class and adding a couple of labels.
So I created a new custom class based on a container and then put the shape and labels on it. If I go to Class menu and select 'New Method' it creates a new method for the container, if I select the Shape object and do the same the custom method is still created on the Container, so guess I need to add the custom shape class to the container rater than add a standard shape object and work on it, if that makes sense.
The other option would be to dynamically create the independent label instances at the same time as the custom shapes, just thought it would be neater to have the elements tied together in a container.
Darren
I have a custom shape class, it has added properties and methods. These are dynamically created in the application, I am now looking at adding some additional detail to the shape in the GUI. I want to add a couple of labels that will display information about the shape, so was looking at creating a custom class based on a container, dropping in the custom shape class and adding a couple of labels.
So I created a new custom class based on a container and then put the shape and labels on it. If I go to Class menu and select 'New Method' it creates a new method for the container, if I select the Shape object and do the same the custom method is still created on the Container, so guess I need to add the custom shape class to the container rater than add a standard shape object and work on it, if that makes sense.
The other option would be to dynamically create the independent label instances at the same time as the custom shapes, just thought it would be neater to have the elements tied together in a container.
Darren