Generalising Code....

Cavan Fyans <[email protected]> Fri, 20 May 2005 17:30:50 +0100
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
Hi,

In the code listed below if you look as the methods Shape1, Shape2,
Shape3 etc they are all pretty much the same appart from the .png file
that is loaded onto each shape...in 'Shape1' I have the menu items for
changing the colour of it....i want this feature for every one of the
different shapes, but obviously copying the same code into each one is
alot of code there...is there a way i can refine this so i only have
to list the menus once yet they still apply to each object
individually?

Also i would like to be able to change the colours of the objects
independant of each other but through key presses rather then the
cumbersome right click...the way i thought may work was knowing which
object is selected and then only altering the colour of that selected
object...but i could not manage to call a colour change through this
system...

Any help would be great!

Thanks.
Cav.
Code:    http://bb.1asphost.com/CavSymbiotick/Project.txt

_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve