Διάλογοι

Ένας διάλογος παρέχει μια ανταλλαγή πληροφοριών, ή έναν διάλογο, ανάμεσα στο χρήστη και την εφαρμογή. Χρησιμοποιήστε ένα διάλογο για να πάρετε επιπλέον πληροφορίες από το χρήστη οι οποίες χρειάζονται για να ολοκληρωθεί μια εντολή ή μια εργασία.

A dialog should not appear in the panel window list. Any open dialogs should be raised above the application when the application window itself is selected from the window list.

Φιγούρα 3-24Ένα παράδειγμα διαλόγου
Μορφοποίηση τίτλου:

Το όνομα της εντολής που άνοιξε το διάλογο (χωρίς αποσιωπητικά κατάληξης)

Εντολέςς παραθύρων:

Ελαχιστοποίηση, Τύλιγμα/Ξετύλιγμα

Κουμπιά:

Ακολουθήστε τις οδηγίες για κουμπιά ειδοποιήσεων, δείτε το Ενότητα 3.4.2 ― Κουμπιά ειδοποιήσεων.

Ο διάλογός σας ενδεχομένως ορίζει ένα προεπιλεγμένο κουμπί, το οποίο ενεργοποιείται όταν ο χρήστης πιέζει το πλήκτρο Return key. Δείτε τα Ενότητα 3.3.3 ― Προεπιλεγμένα κουμπιά για τον οδηγό επιλογής ενός κατάλληλο προεπιλεγμένου κουμπιού.

3.6.1. Επιπρόσθετα κουμπιά

You can include other buttons in a dialog's main button area in addition to the affirmative button and Cancel, but any more than one or two such buttons will make the dialog appear complicated and difficult to use. As with any other button, keep the labels as concise as possible to minimize this effect.

Κατευθυντήριες γραμμές
  • Place buttons that apply to the dialog as a whole in the main button area row at the bottom of the dialog, to the left of the Cancel button.
  • Place buttons that apply to one or a few controls next to their associated controls. For instance, place a Browse... button at the trailing edge of the text field it fills in.

3.6.2. Διάταξη

A clean, logical dialog layout helps the user to quickly understand what information is required from them.

Κατευθυντήριες γραμμές
  • Arrange controls in your dialog in the direction that people read. In western locales, this is generally left-to-right, top-to-bottom. Position the main controls with which the user will interact as close to the upper left corner as possible. Follow similar guidelines for arranging controls within groups in the dialog, and for specifying the order in which controls are traversed using the Tab key.
  • When opening a dialog, provide initial keyboard focus to the component that you expect users to operate first. This focus is especially important for users who must use a keyboard to navigate your application.
  • Provide and show sensible default values for as many of the controls in your dialog as possible when it is opened, so the user does not have to generate the information from scratch. These defaults may come from system settings (for example, hostname or IP address), or from information that the user has previously entered in this or another application (for example, email address or network proxy).

Δείτε τη για περισσότερες αναλυτικές πληροφορίες όσον αφορά την τακτοποίηση ελέγχων μέσα σε διαλόγους.

See Ενότητα 6.16 ― Σημειοωματάρια με καρτέλες for information on using tabbed notebook controls in dialogs.

3.6.3. Κοινοί διάλογοι

The gtk and GNOME libraries provide standard dialogs for many common tasks, including opening and saving files, choosing fonts and colors, and printing. Always use these when the user is performing one of these tasks. You may modify the dialogs to reflect the needs of your particular application (for example, adding preview Play and Stop buttons to the Open File dialog in an audio application), but do not change or remove features so much as to make them unrecognizable.