... I am a Girl!" ) here the menuItem MENUITEM FILE "..\bitmaps\End.bmp" MESSAGE "Bye, bye... -F2-" ; ACTION oWnd:End() ; ACCELERATOR 0, VK_F2 run ok ( fwh16.02)
Thank you very much ! Working perfectly. This will allow me to finish this app's last text update and star migrating it to GUI. Reports are already migrated. Is there a way to implement accelerator keys ?
Mr. Rao, is it possible, to add a ACCELERATOR like on a normal button ? oBtn:bPainted := { || ( nColor := If( oBtn:lMOver, 255, 0 ), ; oBtn:Say( 5, 5, "Test", nColor, NIL, oFont, .T., .T. ) ) } instead of a normal text, I added a ...
Enrico, This is the menu image without accelerators: https://bitbucket.org/fivetech/screenshots/downloads/menu1.jpg And this is your seocnd example with accelerator: https://bitbucket.org/fivetech/screenshots/downloads/menu2.jpg ...
Antonio, please try this. The menu item has been enlarged to accomodate the accelerator. #include "Fivewin.ch"FUNCTION MAIN() LOCAL oWnd, oMenu MENU oMenu MENUITEM "Test" ...