GUI written without GUIDE: How to make sure layout remains consistent across different displays (different resolutions)?
Vous suivez désormais cette question
- Les mises à jour seront visibles dans votre flux de contenu suivi.
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails.
Une erreur s'est produite
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
0 votes
Réponse acceptée
0 votes
4 commentaires
- DPI, dots per inch. The physical density of the pixels.
- number of rows and columns of pixels
- physical size of display
- information density
- position accuracy
- as pixel density changes and as allocated row and column pixels change (different display, or user resizes window), people usually want text characters to maintain a relatively constant viewing angle; in the case of consistent viewing distance that translates to a relatively constant physical width. The preferred angle will depend upon the user and may change with time (e.g., I have been having difficulty with my eyes lately and need larger text.) If the width you have allocated for the text is not enough, you can truncate the text, or you can put in a scroll bar, or you can flow or wrap the text. (There is a whole study of hyphenation rules for breaking words "nicely"!)
- for plots, the most common desired behavior is to rescale to fit available space, with zoom and pan potentially enabled. But sometimes that just loses too much detail and you want to go for a larger presentation and scroll-bar
- for images, the choice tends to depend more on context. Scaling images to fit the available space is not at all unusual, and is typical for viewing photographs for enjoyment or for using an image as a design background. But wanting to view images at full resolution, one image pixel per screen pixel, is not unusual, and for image editing work wanting to zoom images is par for the course. Viewing an image "full-screen" is common, in which case the other controls and border decoration should "get out of the way". Especially for cases where the user has choice of images, you need to decide ahead of time which viewing mode you are employing and make provision for the major alternate mode. When there is an image with scroll-bars, people generally expect that if they make the containing window larger, that more of the image will become visible rather than the same portion of the image will be visible but drawn with larger pixels. Until, that is, the whole image is visible, after which they might expect magnification, but not necessarily...
Plus de réponses (0)
Catégories
En savoir plus sur Interactive Control and Callbacks dans Centre d'aide et File Exchange
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
