[Gambas-user] Super Events. Are they posible?
Jorge Carrión
shordi at ...626...
Thu Feb 13 19:31:04 CET 2014
It have a lot of forms opened... in a few workspaces, of course.
I'll try what you sa*y *I'll Keep you informed.
Regards.
2014-02-13 19:17 GMT+01:00 Benoît Minisini <gambas at ...1...>:
> For information:
>
> In Gambas, KeyPress events on a control are sent to the form that
> contains the control first. That way you have to write one event handler
> for each form only.
>
> And if your application has a lot of forms opened at the same time, you
> are rewriting the GIMP. :-)
>
> Le 12/02/2014 18:43, Jorge Carrión a écrit :
> > It's posible to raise a Super Event? ("Super" like in Superman, not in
> > oop).
> > I mean to create a Event that works in every part of the application.
> > I am developing a very large proyect with docens of forms and I've a form
> > calle HelpForm wich implements a Help system for the user sensible to
> last
> > control used for search help about it .
> >
> > What I want is a method like this
> >
> > Public sub SUPER_Key_Release( key as integer)
> >
> > dim help as formHelp
> >
> > if key.code=key.F1 then
> > fHelp = new formHelp(lastcontrol)
> > fHelp.show
> > endif
> > end
> >
> > Press F1 in whatever Form inside or outside of whatever control and get
> > acces to a FormHelp.
> >
> > In other words: a Event that I must declare only once in Application or,
> at
> > least, once in form and affect all controls.
> > It's posible to do somenthing like that?
> >
> > Thanks in advance.
> >
> > Regards
> >
> ------------------------------------------------------------------------------
> > Android apps run on BlackBerry 10
> > Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> > Now with support for Jelly Bean, Bluetooth, Mapview and more.
> > Get your Android app in front of a whole new audience. Start now.
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Android apps run on BlackBerry 10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in front of a whole new audience. Start now.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list