how to trap show modal close response?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

how to trap show modal close response?

PICCORO McKAY Lenz
i have a simple module:


Public Sub Main()

  FLogin.ShowModal

End

and on the FLogin.class i have a simple override of a buton event:

Public Sub closebtn_Click()

  Me.Close(33)

End

how can i trap in the MMain module in main the reponse of the FLogin
without explicit call to moduleo inside the FLogin form.. ?



Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to trap show modal close response?

Jussi Lahtinen
Public Sub Main()

Dim ii As Integer = FLogin.ShowModal()

End

''Now the ii contains the output.

PS. Are you sure that is override of something?


Jussi



On Mon, Jul 10, 2017 at 11:02 PM, PICCORO McKAY Lenz <[hidden email]
> wrote:

> i have a simple module:
>
>
> Public Sub Main()
>
>   FLogin.ShowModal
>
> End
>
> and on the FLogin.class i have a simple override of a buton event:
>
> Public Sub closebtn_Click()
>
>   Me.Close(33)
>
> End
>
> how can i trap in the MMain module in main the reponse of the FLogin
> without explicit call to moduleo inside the FLogin form.. ?
>
>
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to trap show modal close response?

PICCORO McKAY Lenz
ah, the problem was i write:

"FLogin.ShowModal"

and due its a function must be:

"FLogin.ShowModal()"

thanks Jussi..

why this heck are not well documented in the wiki?

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-07-10 16:19 GMT-04:00 Jussi Lahtinen <[hidden email]>:

> Public Sub Main()
>
> Dim ii As Integer = FLogin.ShowModal()
>
> End
>
> ''Now the ii contains the output.
>
> PS. Are you sure that is override of something?
>
>
> Jussi
>
>
>
> On Mon, Jul 10, 2017 at 11:02 PM, PICCORO McKAY Lenz <
> [hidden email]
> > wrote:
>
> > i have a simple module:
> >
> >
> > Public Sub Main()
> >
> >   FLogin.ShowModal
> >
> > End
> >
> > and on the FLogin.class i have a simple override of a buton event:
> >
> > Public Sub closebtn_Click()
> >
> >   Me.Close(33)
> >
> > End
> >
> > how can i trap in the MMain module in main the reponse of the FLogin
> > without explicit call to moduleo inside the FLogin form.. ?
> >
> >
> >
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> > ------------------------------------------------------------
> > ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Gambas-user mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Loading...