i have dimmed the default menu options of the form and have added new menu that is being dispalyed on screen but the problem is non of the menu option is conducting any command. have a look at the code ... please guide me where should i change the code.
thanks
zahid

//////////FORM.CPP////////////

Code:
void COpponentFormForm::DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane)
	{
	CAknForm::DynInitMenuPaneL(aResourceId,aMenuPane);
	
	if (aResourceId == R_AVKON_FORM_MENUPANE)
		{
		aMenuPane->AddMenuItemsL(R_MY_FORM_MENU,0,1);   
		aMenuPane->SetItemDimmed(EAknFormCmdLabel, ETrue);
		aMenuPane->SetItemDimmed(EAknFormCmdAdd, ETrue);
		aMenuPane->SetItemDimmed(EAknFormCmdDelete, ETrue);
		//aMenuPane->SetItemDimmed(EAknFormCmdSave, ETrue);
		}
	else
	        {
	    	CAknForm::DynInitMenuPaneL(aResourceId, aMenuPane);
	        }    
	
	}


void COpponentFormForm::ProcessCommandL(TInt aCommandId)
{
	switch(aCommandId)
	{
	case EMyFormCmdHelp:
		{
		
		//AppUi()->ActivateLocalViewL( TUid::Uid( EGQuiz1GameSelectViewId ) );    this line doesnt work ERROR
		}
	// Handle the command
	break;
	case EAknFormCmdSave:
		{
		SaveFormDataL();
		}
	default :
		
	break;
	}
	
}


/////////////////FORM.H////////////////////////
Code:
class COpponentFormForm : public CAknForm
	{
public: // Constructor

	static COpponentFormForm* NewL(TOpponentFormOpponent& aOpponent );

private: // from CAknForm

	void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane );

	TBool SaveFormDataL(); 

	void DoNotSaveFormDataL();

	void PreLayoutDynInitL();
	
	void ProcessCommandL( TInt aCommandId );
	// Actions on exiting form
	//TBool OkToExitL(TInt aButtonId);
	
	

private: // Constructor
	
	COpponentFormForm (TOpponentFormOpponent& aOpponent ) : iOpponent(aOpponent){};

private: // members

	void LoadFormValuesFromDataL();

private: //data
	TOpponentFormOpponent& iOpponent;
	};

#endif	// #ifndef OPPONENTFORMFORM_H

// End of File