From 76aa7d295829a53409da3f0d76e373abb89a5eeb Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Fri, 9 Feb 2024 11:43:33 +0300 Subject: Correct formatting in popup lesson Signed-off-by: Konstantin Aladyshev --- Lessons_uncategorized/Lesson_Varstore_6/README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Lessons_uncategorized/Lesson_Varstore_6') 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()`. -- cgit v1.2.3-18-g5258