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:
parent
651c91eb56
commit
e2d91757af
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue