aboutsummaryrefslogtreecommitdiffstats
path: root/Lessons_uncategorized
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2024-02-09 11:43:33 +0300
committerKonstantin Aladyshev <aladyshev22@gmail.com>2024-02-09 11:43:33 +0300
commit76aa7d295829a53409da3f0d76e373abb89a5eeb (patch)
treea6ccc834a1af65723b2eb9a8f6e03e52fdb3b8f2 /Lessons_uncategorized
parent6cb4310b730901280b157c0e2c072966c74be134 (diff)
downloadUEFI-Lessons-76aa7d295829a53409da3f0d76e373abb89a5eeb.tar.gz
UEFI-Lessons-76aa7d295829a53409da3f0d76e373abb89a5eeb.tar.bz2
UEFI-Lessons-76aa7d295829a53409da3f0d76e373abb89a5eeb.zip
Correct formatting in popup lesson
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'Lessons_uncategorized')
-rw-r--r--Lessons_uncategorized/Lesson_Varstore_6/README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lessons_uncategorized/Lesson_Varstore_6/README.md b/Lessons_uncategorized/Lesson_Varstore_6/README.md
index 590cd23..a5f9236 100644
--- a/Lessons_uncategorized/Lesson_Varstore_6/README.md
+++ b/Lessons_uncategorized/Lesson_Varstore_6/README.md
@@ -253,17 +253,21 @@ As you remember the first callback call that is executed in our case was:
Callback: Action=EFI_BROWSER_ACTION_FORM_OPEN, QuestionId=0x5555, Type=EFI_IFR_TYPE_BOOLEAN, Value=0
```
Here is how it looks now in a form of a popup message. As you can see it is printed by the browser before even drawing our form:
+
![popup1](popup1.png?raw=true "popup1")
There is not much different in style between the `EfiHiiPopupStyleInfo`/`EfiHiiPopupStyleWarning`/`EfiHiiPopupStyleError`. This just changes the popup header.
For example here is the same popup with a style `EfiHiiPopupStyleWarning`:
+
![popup2](popup2.png?raw=true "popup2")
And with the style `EfiHiiPopupStyleError`:
+
![popup3](popup3.png?raw=true "popup3")
Changing the popup type between the `EfiHiiPopupTypeOk`/`EfiHiiPopupTypeOkCancel`/`EfiHiiPopupTypeYesNo`/`EfiHiiPopupTypeYesNoCancel` modifies the user selection options in the bottom of the window. For example here is how `EfiHiiPopupTypeOkCancel` look like:
+
![popup4](popup4.png?raw=true "popup4")
I hope you can imagine how `EfiHiiPopupTypeYesNo`/`EfiHiiPopupTypeYesNoCancel` look like. In case you need to check what the option user pressed, you just check the return argument `EFI_HII_POPUP_SELECTION UserSelection`.
@@ -386,6 +390,7 @@ VOID PopupCallbackInfo(EFI_BROWSER_ACTION Action, EFI_QUESTION_ID QuestionId, UI
}
```
This is how a popup would look like in this case:
+
![popup5](popup5.png?raw=true "popup5")
You can compare the style of this popup with the window from the `EFI_HII_POPUP_PROTOCOL.CreatePopup()`.