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
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.
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
-
- Mensajes: 202
- Registrado: Dom Feb 17, 2008 3:35 am
-
- Mensajes: 202
- Registrado: Dom Feb 17, 2008 3:35 am
Request for example
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
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
Request for example
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
> 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
-
- Mensajes: 281
- Registrado: Mar Ago 15, 2006 1:50 pm
Request for example
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
>
>
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
>
>