by Milan Mehta » Mon Nov 21, 2005 5:32 am
Dear James / Enrico,
The following code did solve my problem.
MENUITEM "E&xit Alt+F4" ACTION wndMain():End().
However my code that does not work is as follows :
TIA
Milan.
--------------------------Cut------------------------------
#include "FiveWin.ch"
function Main()
local oWnd, oBrush, oBar, oBmp, oIcon
DEFINE ICON oIcon RESOURCE 'Task'
DEFINE BRUSH oBrush STYLE BORLAND // FiveWin new predefined Brushes
DEFINE WINDOW oWnd FROM 4, 4 TO 25, 75 ;
TITLE "Test Menu Program" ;
MENU BuildMenu(oWnd) ;
BRUSH oBrush ;
ICON oIcon MDI
ACTIVATE WINDOW oWnd MAXIMIZED
return nil
function BuildMenu (oWnd)
local oMenu
MENU oMenu
MENUITEM "&File"
MENU
MENUITEM "Exit" ACTION oWnd:End()
ENDMENU
ENDMENU
return oMenu
--------------------------Paste----------------------------