Page 1 of 1

can't see menu

PostPosted: Sun Jun 15, 2008 8:22 am
by kajot
windows 2003 ce
I can't see menu in PPC

// FiveWin for Pocket PC - Using PullDown Menus

#include "FWCE.ch"

//----------------------------------------------------------------------------//

function Main()

local oWnd

DEFINE WINDOW oWnd TITLE "Tutor03" ;
MENU BuildMenu()

ACTIVATE WINDOW oWnd ;
ON CLICK MsgInfo( "Click!" )

return nil

//----------------------------------------------------------------------------//

function BuildMenu()

local oMenu, oMenuItem

DEFINE MENU oMenu RESOURCE 102

REDEFINE MENUITEM ID 100 OF oMenu ACTION MsgInfo( "MenuItem action" ) WHEN .f.

REDEFINE MENUITEM ID 110 OF oMenu ACTION MsgAlert( "FWCE power!" )

return oMenu

//----------------------------------------------------------------------------//

PostPosted: Sun Jun 15, 2008 9:09 am
by Antonio Linares
Kajot,

Please check that the resources has been properly placed inside the EXE file.

You can use a tool like Borland Resources Workshop to check it.

Also, you may test the EXE in the Windows Mobile emulator to see if the menu is shown there.

PostPosted: Sun Jun 15, 2008 12:02 pm
by kajot
I tested the EXE in the Windows Mobile emulator and I can't see MENU, what is RC file

PostPosted: Mon Jun 16, 2008 7:08 pm
by Antonio Linares
kajot,

Please review samples\TestMenu.prg and TestMenu.rc to see the way to build pulldown menus in Windows Mobile, thanks

PostPosted: Wed Jun 18, 2008 3:31 pm
by kajot
where may I found the describtion rc file ?

PostPosted: Wed Jun 18, 2008 4:22 pm
by Antonio Linares
kajot,

TestMenu.rc is located in fwppc\samples\TestMenu.rc