Do the following enhancement for SetupBrowser:
1. Support Scroll up and down. When hit the top, the last page will be showed. When hit the bottom, the first page will be showed. 2. Show forms page by page based on the option (including unselected and selected). 3. Add PCD to configure whether TEXT statement is set to Grayout option. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11355 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Utility functions for UI presentation.
|
||||
|
||||
Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -773,6 +773,7 @@ UpdateKeyHelp (
|
||||
case EFI_IFR_TEXT_OP:
|
||||
case EFI_IFR_ACTION_OP:
|
||||
case EFI_IFR_RESET_BUTTON_OP:
|
||||
case EFI_IFR_SUBTITLE_OP:
|
||||
ClearLines (LeftColumnOfHelp, RightColumnOfHelp, TopRowOfHelp, BottomRowOfHelp, KEYHELP_TEXT | KEYHELP_BACKGROUND);
|
||||
|
||||
if (!Selected) {
|
||||
@@ -785,7 +786,7 @@ UpdateKeyHelp (
|
||||
}
|
||||
|
||||
PrintAt (StartColumnOfHelp, BottomRowOfHelp, L"%c%c%s", ARROW_UP, ARROW_DOWN, gMoveHighlight);
|
||||
if (Statement->Operand != EFI_IFR_TEXT_OP) {
|
||||
if (Statement->Operand != EFI_IFR_TEXT_OP && Statement->Operand != EFI_IFR_SUBTITLE_OP) {
|
||||
PrintStringAt (SecCol, BottomRowOfHelp, gEnterString);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user