Hello !
As in attachment!
Attached files Diagram1.html (554 B)Â Diagram2.html (554 B)Â
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.
How will be realized connection in red lines?
-
- Mensajes: 98
- Registrado: Vie Feb 18, 2005 10:34 am
How will be realized connection in red lines?
Vladimir,
In Form1, set the event OnClose to:
METHOD Form1Close( oSender )
IF .NOT. MsgYesNo( "Exit?" )
RETURN .F. // No exit
ENDIF
RETURN Nil
TO launch Form2 do:
WITH OBJECT TForm2():New( Self )
IF :ShowModal() == mrOK
// Do whatever you want
ENDIF
END
and in Form2, set the following properties:
- Ok button:
lDefalult := .T.
nModalResult := mrOK
- Cancel button
lCancel := .T.
nModalResult := mrCANCEL
To move among controls using VK_RETURN, simply set Application:lUseReturn := .T. at the beggining of your app.
--
Regards,
Jose F. Gimenez
--
In Form1, set the event OnClose to:
METHOD Form1Close( oSender )
IF .NOT. MsgYesNo( "Exit?" )
RETURN .F. // No exit
ENDIF
RETURN Nil
TO launch Form2 do:
WITH OBJECT TForm2():New( Self )
IF :ShowModal() == mrOK
// Do whatever you want
ENDIF
END
and in Form2, set the following properties:
- Ok button:
lDefalult := .T.
nModalResult := mrOK
- Cancel button
lCancel := .T.
nModalResult := mrCANCEL
To move among controls using VK_RETURN, simply set Application:lUseReturn := .T. at the beggining of your app.
--
Regards,
Jose F. Gimenez
--
How will be realized connection in red lines?
Vladimir,
In Form1, set the event OnClose to:
METHOD Form1Close( oSender )
IF .NOT. MsgYesNo( "Exit?" )
RETURN .F. // No exit
ENDIF
RETURN Nil
TO launch Form2 do:
WITH OBJECT TForm2():New( Self )
IF :ShowModal() == mrOK
// Do whatever you want
ENDIF
END
and in Form2, set the following properties:
- Ok button:
lDefalult := .T.
nModalResult := mrOK
- Cancel button
lCancel := .T.
nModalResult := mrCANCEL
To move among controls using VK_RETURN, simply set Application:lUseReturn := .T. at the beggining of your app.
--
Regards,
Jose F. Gimenez
--
In Form1, set the event OnClose to:
METHOD Form1Close( oSender )
IF .NOT. MsgYesNo( "Exit?" )
RETURN .F. // No exit
ENDIF
RETURN Nil
TO launch Form2 do:
WITH OBJECT TForm2():New( Self )
IF :ShowModal() == mrOK
// Do whatever you want
ENDIF
END
and in Form2, set the following properties:
- Ok button:
lDefalult := .T.
nModalResult := mrOK
- Cancel button
lCancel := .T.
nModalResult := mrCANCEL
To move among controls using VK_RETURN, simply set Application:lUseReturn := .T. at the beggining of your app.
--
Regards,
Jose F. Gimenez
--