Enable lock attribute for statement and form; show this attribute same as grayout.

Signed-off-by: ydong10
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12721 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10
2011-11-16 05:23:38 +00:00
parent 85aa96cd54
commit f67c4382ed
6 changed files with 37 additions and 2 deletions

View File

@@ -2117,6 +2117,28 @@ ParseOpCodes (
CurrentForm->ModalForm = TRUE;
break;
//
// Lock tag, used by form and statement.
//
case EFI_IFR_LOCKED_OP:
//
// Get ScopeOpcode from top of stack
//
PopScope (&ScopeOpCode);
PushScope (ScopeOpCode);
switch (ScopeOpCode) {
case EFI_IFR_FORM_OP:
case EFI_IFR_FORM_MAP_OP:
ASSERT (CurrentForm != NULL);
CurrentForm->Locked = TRUE;
break;
default:
ASSERT (CurrentStatement != NULL);
CurrentStatement->Locked = TRUE;
}
break;
//
// Vendor specific
//