- Code: Select all Expand view RUN
- #include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd, oMenu
MENU oMenu
MENUITEM "Test"
MENU
MENUITEM "This is a test"
ENDMENU
ENDMENU
DEFINE WINDOW oWnd;
MENU oMenu
ACTIVATE WINDOW oWnd
RETURN NIL
EMG
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd, oMenu
MENU oMenu
MENUITEM "Test"
MENU
MENUITEM "This is a test"
ENDMENU
ENDMENU
DEFINE WINDOW oWnd;
MENU oMenu
ACTIVATE WINDOW oWnd
RETURN NIL
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd, oMenu
MENU oMenu
MENUITEM "Test"
MENU
MENUITEM "This is a test" + CHR( 9 ) + "CTRL-X"
ENDMENU
ENDMENU
DEFINE WINDOW oWnd;
MENU oMenu
ACTIVATE WINDOW oWnd
RETURN NIL
MenuMeasureItem( pMitStruct,;
0.9 * GetTextWidth( 0, If( ! Empty( oItem:cPrompt ),;
StrTran( oItem:cPrompt, "&", "" ), "" ) ) + ;
If( oItem:oMenu:hMenu != If( ::oMenu != nil, ::oMenu:hMenu, 0 ), ;
If( ValType( oItem:cPrompt ) == "C", 50, 0 ), 0 ),;
Empty( oItem:cPrompt ) )
// + 20 introduced due Error on NT on width calculation 1999/05/19
Return to Bugs report & fixes / Informe de errores y arreglos
Users browsing this forum: No registered users and 2 guests