How to make GUI look similar on different computer's screen?

6 Ansichten (letzte 30 Tage)
I am using Matlab 2009b, I have programmed an GUI app on the computer A (window 10, monitor resolution 1920x1080). When I run my app on the other computer (window 7, monitor resolution 1366x768), some UI table is resized, the text label is cut off.
After looking on the internet suggestion, I have try to change the unit within guide to both 'normalized' or 'character', but there is no improvement.
My question is that is there any method/calculation to make my app shows good on different computers? and I do not have to modify the size of each UI elements in my guide app just for satisfying the new computer? Because when I change the size of these components, firstly these UI elements can not be seen well on my programmed computer A, secondly it costs me time and if there are other computers with different monitor, then I have to manually modify each elements?
  3 Kommentare
duong mai
duong mai am 14 Okt. 2019
Thanks for your answer. Actually, we are using Matlab 2009b since the runtime library is small in size (~175Mb) and our app is just simple calculation. Choosing this version is for fast performance of the guest's computer (when start up the program), their computer is also not high performance in cpu.
Now I am using high DPI computer to programmed the app, and applying it to the low DPI computer of our customer. I can not have same view in Matlab guide due to screen's difference.
Image Analyst
Image Analyst am 14 Okt. 2019
But did you see my Answer below or not?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 13 Okt. 2019
The best way I've found is to set all the units to normalized, and then have your end user use as close a pixel dimensions as you as possible. Also make sure they use the same magnification (text size) as you. For example if you're using 100% make sure they use 100%, not 125%. That's about as good as you can get but even then it may not be perfect.
  1 Kommentar
duong mai
duong mai am 14 Okt. 2019
Yes, you are right. Thanks you for your answer, as you said it still does not look prefect.
I just know that my font size (programmed computer) is 125%, and the user is 100%. I have some tests, by adjusting the font size (100%), the I made all the ui elements unit is normalized, except the main windows of each gui (remaining in pixel unit). Then I can see that the ui sizes are almost same between my computer and user computer.
Thanks you, again.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by