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:
@@ -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
|
||||
//
|
||||
|
Reference in New Issue
Block a user