1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

DemoRunner: Added a warning to the modal dialog

This commit is contained in:
Tom Poole 2021-01-15 16:11:01 +00:00
parent 651c91eb56
commit e2d91757af

View file

@ -248,6 +248,11 @@ private:
else if (type == extraComponentsAlertWindow)
{
#if JUCE_MODAL_LOOPS_PERMITTED
// Modal loops are extremely dangerous. Do not copy the code below unless you are absolutely
// certain you are aware of all the many complicated things that can go catastrophically
// wrong. Read the documentation for Component::runModalLoop. If you find you are using code
// similar to this you should refactor things to remove it.
AlertWindow w ("AlertWindow demo..",
"This AlertWindow has a couple of extra components added to show how to add drop-down lists and text entry boxes.",
AlertWindow::QuestionIcon);