4 ms·
> But little I knew, that this is actually specific to windows, and on Linux or macOS, the order is reversed Actually on Linux it depends on the toolkit and/o
by badsectoracula 8y ago
> But little I knew, that this is actually specific to windows, and on Linux or macOS, the order is reversed
Actually on Linux it depends on the toolkit and/or environment you are using and in this case it seems that GNOME/GTK is the odd one out. After doing some search, it looks like that every other toolkit and environment uses OK -> Cancel:
http://ocsmag.com/wp-content/uploads/2015/02/plasma-krunner-modules.png http://ocsmag.com/wp-content/uploads/2015/02/plasma-krunner-... (KDE)
https://docs.kde.org/trunk5/en/kdeaccessibility/kmouth/kmouthctts.png https://docs.kde.org/trunk5/en/kdeaccessibility/kmouth/kmout... (KDE)
https://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/kdialog.png https://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/kdial... (KDE)
https://www.sao.ru/hq/sts/linux/book/xbook_marshall/prompt.gif https://www.sao.ru/hq/sts/linux/book/xbook_marshall/prompt.g... (Motif)
https://www.sao.ru/hq/sts/linux/book/xbook_marshall/dialog1.gif https://www.sao.ru/hq/sts/linux/book/xbook_marshall/dialog1.... (Motif)
http://northstar-www.dartmouth.edu/doc/idl/html_6.2/images/macro02.gif http://northstar-www.dartmouth.edu/doc/idl/html_6.2/images/m... (Motif)
http://www.antillia.com/oz++/images/IconBar.png http://www.antillia.com/oz++/images/IconBar.png (Motif)
https://tkdocs.com/images/idleprefs_l.png https://tkdocs.com/images/idleprefs_l.png (Tk)
http://zetcode.com/img/gui/tkinter/colorchooser.png http://zetcode.com/img/gui/tkinter/colorchooser.png (Tk)
http://www.fltk.org/doc-2.0/html/filechooser.gif http://www.fltk.org/doc-2.0/html/filechooser.gif (Fltk)
Even on TUIs/Console the order tends to be OK -> Cancel:
http://linuxcommand.org/images/adventure_dialog-radiolist.png http://linuxcommand.org/images/adventure_dialog-radiolist.pn... (dialog)
https://i.imgur.com/ruW7AQE.png https://i.imgur.com/ruW7AQE.png (Free Vision)
https://raw.githubusercontent.com/pfalcon/picotui/master/picotui.png https://raw.githubusercontent.com/pfalcon/picotui/master/pic... (picotui)
Also FWIW in my own programs i am always going OK -> Cancel since it feels more natural.
- eliaspro 8y agoIIRC KDE (or was it Gnome) changes the order depending on whether it's a RTL or LTR locale.
- badsectoracula 8y agoApparenly Windows does that too [1] (or did at some point, i can't find any recent shot that showed a dialog box). It actually looks like it flips the entire window horizontally in RTL :-P. [1] http://www.geocities.ws/mowasel/tech_zone/images/dialog5.jpg http://www.geocities.ws/mowasel/tech_zone/images/dialog5.jpg