In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Request for example

Xailer English public forum
Responder
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

Request for example

Mensaje por g.s.rogers »

Could someone give me a short example of calling a form from a menu? Is it
as simple as:
METHOD MainMenuItem6_2Click( oSender, oMenu ) CLASS TFormMain
TFormSplash:show
RETURN Nil
Thanks,
Gary S. Rogers
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

Request for example

Mensaje por g.s.rogers »

After looking at a sample, I think it is:
TFormSplash():New( Self ):ShowModal()
is that right?
Gary
"Gary S. Rogers" <g.s.rogers@att.net> wrote in message
news:[email=47bd0408@ozsrv2.ozlan.local...]47bd0408@ozsrv2.ozlan.local...[/email]
> Could someone give me a short example of calling a form from a menu? Is it
> as simple as:
>
> METHOD MainMenuItem6_2Click( oSender, oMenu ) CLASS TFormMain
> TFormSplash:show
> RETURN Nil
>
> Thanks,
> Gary S. Rogers
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Request for example

Mensaje por jfgimenez »

Gary,
> After looking at a sample, I think it is:
>
> TFormSplash():New( Self ):ShowModal()
>
> is that right?
Yes!
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

Request for example

Mensaje por Gejza Horvath »

Gary,
you can use also this recommended (faster and clear) code:
WITH OBJECT TFormSplash():New( Self )
:ShowModal()
* If you need the result from the modal form:
/*
IF :nModalResult == mrOK
.. do here what you need
ELSE
.. The dialog was canceled
ENDIF
*/
END WITH
In this context look also for the TForm:lCloseOnExit property in the doc, for the case you
need some values entered by user on the dialog form.
Gejza Horvath
"Gary S. Rogers" <g.s.rogers@att.net> pí¹e v diskusním pøíspìvku
news:[email=47bd0925@ozsrv2.ozlan.local...]47bd0925@ozsrv2.ozlan.local...[/email]
> After looking at a sample, I think it is:
>
> TFormSplash():New( Self ):ShowModal()
>
> is that right?
>
> Gary
>
>
>
> "Gary S. Rogers" <g.s.rogers@att.net> wrote in message
> news:[email=47bd0408@ozsrv2.ozlan.local...]47bd0408@ozsrv2.ozlan.local...[/email]
>> Could someone give me a short example of calling a form from a menu? Is it as simple
>> as:
>>
>> METHOD MainMenuItem6_2Click( oSender, oMenu ) CLASS TFormMain
>> TFormSplash:show
>> RETURN Nil
>>
>> Thanks,
>> Gary S. Rogers
>
>
Responder