RR,
Where do you add this code? If you want you code works as you expected, you
should do the follow step:
1. Enable INTERACTIVE attribute for your opcode
numeric varid = MyIfrNVData.DynamicRefresh,
prompt = STRING_TOKEN(STR_NUMERIC_MANUAL_PROMPT),
help = STRING_TOKEN(STR_NUMERIC_HELP0),
flags = INTERACTIVE,
key = 0x5678,
minimum = 0,
maximum = 0xff,
step = 0,
default = 0,
refresh interval = 3 // Refresh interval in seconds
endnumeric;
2. In the callback function, add 'CreatePopUp' function for your question.
In MdeModulePkg\Universal\DriverSampleDxe, we has a sample code(sample vfr code
has paste above, you can base on question key 0x5678 to find the related code)
to popup an message when leave this form, you can check this sample code.
Thanks,
Eric
From: [email protected] [mailto:[email protected]]
Sent: Wednesday, April 30, 2014 7:57 PM
To: [email protected]
Subject: [edk2] How to create Popup/Dialog box in HII
Dell - Internal Use - Confidential
Hello,
I was trying to create a dialog box (pop up message box) once a user
selects a particular action in HII form. I tried to use 'CreatePopUp' function
available in MdePkg. It should create the dialog box in console output device
specified by ConOut in EFI_SYSTEM_TABLE. But there is not message box coming on
the screen whereas keystroke is taking effect. Such the screen does not got to
next screen till press the specified key stroke in 'CreatePopUp'. What am I
missing here?
Here is the call I am using:
do {
CreatePopUp (
EFI_RED | EFI_BACKGROUND_BLACK,
&InputKey,
L"",
L"You are going to leave Rajeev's Form!",
L"Press ESC or ENTER to continue ...",
L"",
NULL
);
} while ((InputKey.ScanCode != SCAN_ESC) &&
(InputKey.UnicodeChar != CHAR_CARRIAGE_RETURN));
Kindly let me know if more information is required.
Thanks with regards,
-- RR
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel