Should there be an interface to a container control as a rule?

  1. ‹ Older
  2. 4 months ago

    Markus R

    Mar 26 Testers, Xojo Pro Europe / Germany / Lower Saxon...

    @Brian OBrien I love the interface idea.. makes my coding a lot faster (i don't have to define methods over and over again)...
    but.. no events?!

    Visual Basic eventually added a With Events definition didn't it?
    I'm considering adding a RaiseEvent method to every interface that is

    RaiseEvent(EventName as string, ParamArray params() as variant) as variant

    it would call the method direct and a typical event would start after the end of a method if the event loop continue.
    EventName could be a Enumeration.
    most of all events i define are unique.

  3. James D

    Mar 27 Testers, Xojo Pro Europe (Switzerland)

    @Brian OBrien I love the interface idea.. makes my coding a lot faster (i don't have to define methods over and over again)...
    but.. no events?!

    Visual Basic eventually added a With Events definition didn't it?
    I'm considering adding a RaiseEvent method to every interface that is

    RaiseEvent(EventName as string, ParamArray params() as variant) as variant

    Use a call back function or an observer pattern if appropriate.

or Sign Up to reply!