Modal window

In user interface design, a modal window is a graphical control element subordinate to an application's main window.

A modal window creates a mode that disables user interaction with the main window but keeps it visible, with the modal window as a child window in front of it. Users must interact with the modal window before they can return to the parent window. This avoids interrupting the workflow on the main window. Modal windows are sometimes called heavy windows or modal dialogs because they often display a dialog box.

User interfaces typically use modal windows to command user awareness and to display emergency states, though interaction designers argue they are ineffective for that use.[1] Modal windows are prone to mode errors.[1][2][3]

On the Web, they often show images in detail, such as those implemented by Lightbox library, or are used for hover ads.[4][5]

The opposite of modal is modeless. Modeless windows don't block the main window, so the user can switch their focus between them, treating them as palette windows.

Relevance and use

Use cases

Frequent uses of modal windows include:

  • Drawing attention to vital pieces of information. This use has been criticized as ineffective because users are bombarded with too many dialog boxes, and habituate to simply clicking "Close", "Cancel", or "OK" without reading or understanding the message.[6][7][8]
  • Blocking the application flow until information required to continue is entered, as for example a password in a login process. Another example are file dialogs to open and save files in an application.
  • Collecting application configuration options in a centralized dialog. In such cases, typically the changes are applied upon closing the dialog, and access to the application is disabled while the edits are being made.
  • Warning that the effects of the current action are not reversible. This is a frequent interaction pattern for modal dialogs, but some usability experts criticize it as ineffective for its intended use (protection against errors in destructive actions) due to habituation. They recommend making the action reversible (providing an "undo" option) instead.[1]

Many features that would typically be represented by modal windows are implemented as modal transient panels called "Sheets"[9] on Mac OS X. Transient windows behave similarly to modal windows – they are always on top of the parent window and are not shown in the window list, but they do not disable the use of other windows in the application. Sheets slide out of the window's title bar, and usually must be dismissed before the user can continue to work in the window, but the rest of the application stays usable. Thus they create a mode inside the window that contains them, but are modeless with respect to the rest of the application.

Control of interaction flow

Modal windows are common in GUI toolkits for guiding user workflow. Alan Cooper contends that the importance of requiring the user to attend to important issues justifies restricting the user's freedom and that the alternative would increase user frustration.[10]

Unexpected interruptions

Unexpected alert dialogs are particular culprits of mode errors[1] with potentially severe consequences. Usability practitioners prescribe that dangerous actions should be undoable wherever possible; an alert box that appears unexpectedly or is dismissed by habituation doesn't protect from the dangerous action.[11] A modeless infobar is increasingly seen as preferable to a dialog box because it does not interrupt the user's activities, but rather allows the user to read extra information in their own time.

One proposed approach is to design every input element as a self-contained, task-oriented interaction, guided by its own specific requirements rather than by the global state of the entire application. For example, required elements might be preceded with an asterisk, elements with invalid data might acquire a red border, and so on. With this approach, users actually benefit from seeing many input elements at once — they can enter data in a way that makes sense to them, instead of having all the other unrelated elements blocked until a predefined data-entry sequence is completed.

Problems

A modal window blocks all other workflows in the top-level program until the modal window is closed, as opposed to modeless dialogs that allow users to operate with other windows.[12] Modal windows are intended to grab the user's full attention.[13] Users may not recognize that a modal window requires their attention, leading to confusion about the main window being non-responsive, or causing loss of the user's data input intended for the main window (see Mode error). In severe cases, the modal window appears behind another window controlled by the same program, potentially rendering the entire program unresponsive until the modal window can be located manually.

However, many interface designers have recently taken steps to make modal windows more obvious by darkening the background behind the window or allowing any mouse click outside of the modal window to force the modal window to close – a design called a Lightbox[5] – thus alleviating those problems. Jakob Nielsen states as an advantage of modal dialogs that it improves user awareness: "When something does need fixing, it's better to make sure that the user knows about it." For this goal, the Lightbox design provides strong visual contrast of the dialog over the rest of the visuals. The Lightbox technique is now a common tool in website design.

Modal windows are commonly implemented in ways that block the possibility to move, minimize, iconify, or push that window back, and they grab input focus, which often prevents use of a system's cut, copy, and paste facilities. This can interfere with the use of their parent applications by blocking access to other windows and data within the same application, particularly in cases where the modal window is requiring the user to input information only available in one of the windows it's covering.

For users using virtual work areas larger than their actual screens, modal windows can cause further undesirable behavior, including creating the modal on a portion of the virtual screen not currently on the display, or abruptly switching the display from what the user was working on to an entirely different section.

Modal windows tend to create an abrupt diversion of text input, especially typed input intended for other programs, into themselves. Further, modals usually interpret actuation of the enter key (or in rare cases the presence of a newline in pasted input) as a cue to accept the input and process it—or, in rare cases, may intercept a mouse click intended for a different application that has suddenly been covered. Such interception, called focus stealing (or stealing focus) can compromise privacy and security practices, as well as capture inappropriate, out-of-context input that can cause undefined, arbitrary results in the program that generated the modal window.

Depending on the specifics of implementation, modal windows can violate the principle of least surprise.

Recommendations

Modal dialogs are part of a task flow, and recommendations are given to place them where the focus is in that flow. For example, the window could be placed near the graphical control element that triggers its activation.[14]

Using a semi-transparent dark background can obscure information in the main window, so it is best used only when that information would be distracting. A semi-transparent background can be made less intrusive by having the whole background area function as a close button: this is standard on most mobile operating systems, avoids making the user feel trapped, and makes modal windows feel less like malicious pop-ups.

Design should follow common practices in the platform the program is running on. Microsoft Windows uses standard controls for modal window dialogs, with affirmative action buttons at the lower right of the panel. Mac OS X uses modal sheets with affirmative action buttons being the right-most command.[15]

See also

References

  1. ^ a b c d "Never Use a Warning When you Mean Undo". alistapart.com. Retrieved 2015-10-09.
  2. ^ Raskin, Jef (2000). The Humane Interface. United States: Addison Wesley. ISBN 0-201-37937-6.
  3. ^ "Nitpicker / The Humane Interface". nitpicker.pbworks.com. Rule 1a. Retrieved 2015-10-09.
  4. ^ Quince UX patterns explorer. "Modal Panel". Archived from the original on 2010-02-27. The popular Lightbox JavaScript library uses a modal panel approach for showing the images
  5. ^ a b Jakob Nielsen, Alertbox. "10 Best Application UIs".
  6. ^ Joel Spolsky, User Interface Design for Programmers: Designing for People Who Have Better Things To Do With Their Lives
  7. ^ Raymond Chen, The Old New Thing: The default answer to every dialog box is "Cancel"
  8. ^ Jeff Atwood, Coding Horror: Teaching Users to Read
  9. ^ "Sheets - Presentation - Components - Human Interface Guidelines - Design - Apple Developer". Apple Developer. Retrieved 7 September 2022.
  10. ^ Cooper, Alan (March 17, 2003). About Face 2.0: The Essentials of Interaction Design. Wiley. ISBN 0-7645-2641-3.
  11. ^ Raskin, Jef (2000). The Humane Interface. Addison Wesley. ISBN 0-201-37937-6.
  12. ^ "How to Use Modality in Dialogs". Oracle Corporation.
  13. ^ "Modal Panel". quince.infragistics.com. Archived from the original on 2013-05-06.
  14. ^ "Modal Panel - Implementation". quince.infragistics.com. Archived from the original on 2013-05-06.
  15. ^ Inc., Apple. "Themes - macOS - macOS - Human Interface Guidelines - Apple Developer". developer.apple.com. Retrieved 18 September 2018. {{cite web}}: |last= has generic name (help)

Read other articles:

Priest of Rome elected pope in March 752 In sources prior to the 1960s, this pope is called Stephen II and Pope Stephen II is called Stephen III. Pope-electStephenPredecessorZacharySuccessorStephen II (as Pope) Celestine II (as Pope-elect)OrdersCreated cardinal745by ZacharyPersonal detailsBornRomeDied(752-03-25)25 March 752RomePrevious post(s)Cardinal-priest of San Crisogono (745–752)Other popes named Stephen Pope-elect Stephen (died 25 March 752) was a Roman priest selected in March 7...

 

Japanese manga series This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help improve this article by introducing more precise citations. (February 2017) (Learn how and when to remove this template message) Sarutobi EcchanさるとびエッちゃんGenreComedy, magical girl MangaOkashina Okashina Okashina Ano KoWritten byShotaro IshinomoriPublished byShueishaMagazineMargaretDemograp...

 

« Golpe » redirige ici. Pour la technique musicale, voir Golpe (guitare). Pour les articles homonymes, voir Coup d'État (homonymie). Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. Cet article ne cite pas suffisamment ses sources (mars 2010). Si vous disposez d'ouvrages ou d'articles de référence ou si vous connaissez des sites web de qualité traitant du thème abordé ici, merci de compléter l'article en donnant les références utiles à sa...

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Governor of Nayarit – news · newspapers · books · scholar · JSTOR (September 2020) (Learn how and when to remove this message) Governor of NayaritIncumbentMiguel Ángel Navarro Quinterosince September 19, 2021Term lengthSix years, non-renewable.Inaugural h...

 

Turkish satellite This article is about the Turkish satellite Göktürk-3. For the medieval Turkic people, see Göktürks. Göktürk-3Model of Göktürk-3 displayed at the stand of TAI during the IDEF'15Mission typeSAR Earth observation satelliteOperatorTurkish Ministry of National Defence Spacecraft propertiesManufacturerTAI ASELSANTÜBİTAK UZAY Start of missionLaunch date2023 (planned)   Göktürk-3 is a synthetic aperture radar (SAR) Earth observation satellite that will be designed ...

 

Public park in Queens, New York Not to be confused with Allen Pond Park. Alley Pond ParkAlley Pond Environmental Center (APEC)TypePublic parkLocationBordering Douglaston and Bayside in New York CityCoordinates40°45′30″N 73°44′50″W / 40.75833°N 73.74722°W / 40.75833; -73.74722Area655.294 acres (265.188 ha)Operated byNew York City Department of Parks and RecreationStatusOperatingParking200 spaces Alley Pond Park is the second-largest public park in ...

Banurusman Astrosemitro Kepala Staf Angkatan Kepolisian Republik Indonesia Ke-12Masa jabatan6 April 1993 – 14 Maret 1996PresidenSoehartoPendahuluKunartoPenggantiDibyo Widodo Informasi pribadiLahir(1941-09-28)28 September 1941TasikmalayaMeninggal6 November 2012(2012-11-06) (umur 71)JakartaKebangsaanIndonesiaKarier militerPihak IndonesiaDinas/cabang Kepolisian Republik IndonesiaMasa dinas1965–1996Pangkat Jenderal PolisiSatuanBrigade MobilSunting kotak info �...

 

SD Negeri 21 SanggaleaInformasiJenisNegeriNomor Pokok Sekolah Nasional40300319Jumlah kelasKelas I sampai kelas VIAlamatLokasiJl. Garuda No. 11 Sanggalea Kelurahan Taroada, Kecamatan Turikale, Kabupaten Maros, Sulawesi Selatan, IndonesiaMoto SD Negeri 21 Sanggalea merupakan salah satu sekolah dasar negeri yang terletak di Jl. Garuda No. 11 Sanggalea [1] Kelurahan Taroada, Kecamatan Turikale, Kabupaten Maros, Provinsi Sulawesi Selatan, Indonesia. Sama dengan SD pada umumnya di Indo...

 

政治腐敗 概念 反腐敗 賄賂 裙帶關係 腐败经济学(英语:Economics of corruption) 选举操控 精英俘获(英语:Elite capture) 权力寻租 竊盜統治 黑手黨國家 裙帶關係 行贿基金 買賣聖職 各国腐败 亚洲 中国 治貪史 中華人民共和國 朝鲜 菲律宾 欧洲 俄羅斯(英语:Corruption in Russia) 乌克兰 英国 法国 查论编   此条目的内容是1949年中華人民共和國成立以后中国大陆的国家�...

2005 live album by Grateful DeadGrateful Dead Download Series Volume 8Live album by Grateful DeadReleasedDecember 6, 2005RecordedDecember 10, 1973Length149:15LabelGrateful Dead ProductionsGrateful Dead chronology Fillmore West 1969(2005) Grateful Dead Download Series Volume 8(2005) Grateful Dead Download Series: Family Dog at the Great Highway(2005) Download Series Volume 8 is a live album by the rock band the Grateful Dead. It was released as a digital download on December 6, 2005. I...

 

土库曼斯坦总统土库曼斯坦国徽土库曼斯坦总统旗現任谢尔达尔·别尔德穆哈梅多夫自2022年3月19日官邸阿什哈巴德总统府(Oguzkhan Presidential Palace)機關所在地阿什哈巴德任命者直接选举任期7年,可连选连任首任萨帕尔穆拉特·尼亚佐夫设立1991年10月27日 土库曼斯坦土库曼斯坦政府与政治 国家政府 土库曼斯坦宪法 国旗 国徽 国歌 立法機關(英语:National Council of Turkmenistan) ...

 

此條目可能包含不适用或被曲解的引用资料,部分内容的准确性无法被证實。 (2023年1月5日)请协助校核其中的错误以改善这篇条目。详情请参见条目的讨论页。 各国相关 主題列表 索引 国内生产总值 石油储量 国防预算 武装部队(军事) 官方语言 人口統計 人口密度 生育率 出生率 死亡率 自杀率 谋杀率 失业率 储蓄率 识字率 出口额 进口额 煤产量 发电量 监禁率 死刑 国债 ...

1995 novel by John David Morley The Anatomy Lesson First Edition (US)AuthorJohn David MorleyLanguageEnglishGenreFiction, Bildungsroman, PhilosophicalPublisherAbacus Books (UK)St. Martin's Press (US)Publication date1995Media typePrint (Hardback & Paperback)Pages184 (US Hardback)ISBN0-349-10628-2 (UK)0-312-13426-6 (US) The Anatomy Lesson (1995) is a novel by John David Morley, inspired by Rembrandt’s painting The Anatomy Lesson of Dr. Nicolaes Tulp. Summary In Amsterdam, the streetw...

 

Part of a series on theMilitary of ancient Rome 753 BC – AD 476 Structural history Army Unit types and ranks Decorations and punishments Legions Auxilia Generals Navy Fleets Admirals Campaign history Wars and battles Technological history Military engineering Castra Siege engines Triumphal arches Roads Political history  Strategy and tactics Infantry tactics Frontiers and fortifications Limes Walls Limes Britannicus Antonine Wall Hadrian's Wall Saxon Shore Limes Germanicus Alb Limes L...

 

TeachersPoster rilis teatrikalSutradaraArthur HillerProduserArt LevinsonAaron RussoIrwin RussoDitulis olehW. R. McKinneyPemeran Nick Nolte JoBeth Williams Judd Hirsch Ralph Macchio Allen Garfield Lee Grant Richard Mulligan SinematograferDavid M. WalshPenyuntingDon ZimmermanPerusahaanproduksiUnited ArtistsAaron Russo ProductionsDistributorMGM/UA Entertainment Co.Tanggal rilis 5 Oktober 1984 (1984-10-05) Durasi106 menitNegaraAmerika SerikatBahasaInggrisAnggaran$9 juta[1]Pendapatank...

16°50′24″N 42°35′47″E / 16.840028°N 42.596424°E / 16.840028; 42.596424 مدينة الملك فيصل الرياضيةمعلومات عامةالاسم الكامل مدينة الملك فيصل بن عبد العزيز الرياضيةالمنطقة الإدارية جيزان البلد  السعودية التشييد والافتتاحالتجديد .الاستعمالالمالك الهيئة العامة للرياضةمعلومات أخرىال...

 

Subspecies of the western gorilla Cross River gorillaTemporal range: Pleistocene to recent Gorilla at the Limbe Wildlife Center in Cameroon Conservation status Critically Endangered  (IUCN 3.1)[1] CITES Appendix I (CITES)[2] Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Mammalia Order: Primates Suborder: Haplorhini Infraorder: Simiiformes Family: Hominidae Subfamily: Homininae Genus: Gorilla Species: G. gorilla Subspecies:...

 

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (فبراير 2018) ريتشارد وين معلومات شخصية الميلاد سنة 1943 (العمر 80–81 سنة)  الحياة العملية المدرسة الأم جامعة برينستونجامعة بنسيلفانياجامعة فرجينيا  المهنة العلوم ا�...

2012 book by John Stossel No, They Can't: Why Government Fails – But Individuals Succeed AuthorJohn StosselLanguageEnglishGenrePolitics, economicsPublisherThreshold EditionsPublication dateApril 10, 2012Publication placeUnited StatesMedia typeHardcoverPages338ISBN1451640943 No, They Can't: Why Government Fails – But Individuals Succeed is a 2012 book by John Stossel, the American consumer reporter, investigative journalist, author and libertarian columnist. It was published on April ...

 

此条目也许具备关注度,但需要可靠的来源来加以彰显。(2022年11月25日)请协助補充可靠来源以改善这篇条目。 此生者传记条目需要补充更多可供查證的来源。 (2022年11月25日)请协助補充可靠来源,无法查证的在世人物内容将被立即移除。 日語寫法日語原文ルネッサンス 山田假名るねっさんす やまだ平文式罗马字Runessansu Yamada 文藝復興山田(ルネッサンス山田,Renaissance ...