[quote=145146:@art ouette]If you have several controls that use the same set of events, simply duplicate the first one with all its really useful events.
True, but then that means creating a group of controls with all events, but no code, outside the margins of the window which can be duplicated OR duplicating an existing control with code and perhaps having to then erase code from several events.
I only build desktop applications so could not this be added in as a feature that would still allow one to delete unused events. Deleting unused events from the code during the final build as a general cleanup of the project is a one time thing, but having to add events repeatedly sort of wastes time.[/quote]
You do not get it. Create a control with all the events you may need or want, and when you have your porcupine complete, duplicate it. RB did not add anything in the new events either. Although you could duplicate controls with already coded events if you wanted, and that is possible with Xojo as well. Sure, you will have to strip out unused events eventually, but you do get your full collection to start with, and as you said, you do not sort of waste time adding each event.
I do not believe it is a valid way of proceeding, though. Unless extraordinary circumstances, most of the time if you need half a dozen events that’s already a crowd, and most frequently 2 or 3 is the norm. So having a full compliment of events which, as explained Greg, all chip some computing cycles, seems not very rational.
I do agree it takes a bit of time to add events in Xojo, though, since one has to use the mouse, and if it was possible with the keyboard, it would be faster.
This is an example of a good occasion to embrace the new. Xojo is certainly not a new version of RS. It is a new environment, with it’s own way of doing things. Pretty much like shifting gears with an automatic car makes no sense…