Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Disabling commands in form

1 replies · 2,324 views · Started 20 February 2003

Hi ..

Can any body have an idea on this...

while designing a form in view/edit mode or edit mode it will pop up the options menu with the following commands
add field
save
edit label
delete field.
Is it possible to disable the commands like Add field, Edit Label and Delete Field. For clear understanding please be refer to the form example given with the nokia series 60 SDK.

It will be greatfull if any body send an appropriate code / suggestions on this.

Thanks
Haricharan

Maybe it be useful for You:

void CDerivedForm:😃ynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane)
{
if (aResourceId == R_AVKON_FORM_MENUPANE) //see AVKON.RSG !
{
aMenuPane->SetItemDimmed(EAknFormCmdAdd,ETrue); //see AVKON.HRH !
aMenuPane->SetItemDimmed(EAknFormCmdEdit,ETrue);
aMenuPane->SetItemDimmed(EAknFormCmdDelete,ETrue);
}
}

Regards
Wojciech