How do OnInitialize on Command Line?
Publicado: Sab Abr 04, 2015 6:28 am
By Google Translator - Sorry
The IDE put in OnInitialize event { || SetKey ( VK_ESCAPE , 0 , { || ::
Close ( ) } ) }
ok works
How do it on command ?
I tried the way down and could not.
WITH OBJECT oForm : = TForm ( )
: SetBounds ( 508, 218, 894, 534 )
: SetClientSize ( 880, 520)
: cText : = ' Sales Query '
: oFont : = TFont (): Create ( "MS Sans Serif " , 8, 0 , 400)
: nBorderStyle : = bsNONE
// : OnInitialize : = { || SetKey ( VK_ESCAPE , 0 , { || :: Close
( ) } ) } // so it did not work .
: New ( Application : oActiveForm )
: OnInitialize : = { || SetKey ( VK_ESCAPE , 0 , { || :: Close ( ) } ) }
: ShowModal (.T . )
END
Regards,
Cassiano.
---
Este email foi escaneado pelo Avast antivírus.
http://www.avast.com
The IDE put in OnInitialize event { || SetKey ( VK_ESCAPE , 0 , { || ::
Close ( ) } ) }
ok works
How do it on command ?
I tried the way down and could not.
WITH OBJECT oForm : = TForm ( )
: SetBounds ( 508, 218, 894, 534 )
: SetClientSize ( 880, 520)
: cText : = ' Sales Query '
: oFont : = TFont (): Create ( "MS Sans Serif " , 8, 0 , 400)
: nBorderStyle : = bsNONE
// : OnInitialize : = { || SetKey ( VK_ESCAPE , 0 , { || :: Close
( ) } ) } // so it did not work .
: New ( Application : oActiveForm )
: OnInitialize : = { || SetKey ( VK_ESCAPE , 0 , { || :: Close ( ) } ) }
: ShowModal (.T . )
END
Regards,
Cassiano.
---
Este email foi escaneado pelo Avast antivírus.
http://www.avast.com