MATLAB Answers

Art
0

GUI differences among different users

Art
さんによって質問されました 2012 年 12 月 7 日
I created a gui using GUIDE from MATLAB 2009a and got it looking how I want it. Multiple people have tried to use it as well, all from 2009a (from different computers). of the 10 or so people I have talked with, maybe 5 or 6 have the problem where the gui is showing up differently. This means that buttons and other items on the gui are misplaced or misaligned, although the functionality is still there. What can I do to make the gui appear the same for all users?

  0 件のコメント

サインイン to comment.

タグ

3 件の回答

Walter Roberson
回答者: Walter Roberson
2012 年 12 月 7 日
 採用された回答

How are you positioning elements? If you have some elements positioned in absolute locations, but other elements positioned in relative locations, you can get a mess when you display on a screen with a different resolution.
Also if you are positioning all elements relative to the figure size, but you use a fixed font size (instead of changing the font to suit the figure size) then items can look messy.

  3 件のコメント

Art
2012 年 12 月 7 日
I believe this might be the case. This gui is a hodgepodge of updates that occurred over the last several years, and I am not sure the updates were all done the same way. What is the easiest way to (re)align everything in the same reference frame?
Evan
2012 年 12 月 7 日
Using a consistent value for the "units" property has seemed to work best for me. I generally use either pixels or (if I set the figure to resizeable) normalized. Not sure which is considered optimal.
Walter Roberson
2012 年 12 月 7 日
Neither Normalized nor fixed positions will work nicely in all (reasonable) cases. That's why I ended up writing my own layout routines that figured out how big elements had to be and positioned other elements relative to them. Unfortunately I do not own the rights to that code, so I cannot share it in its present form.

サインイン to comment.


Image Analyst
回答者: Image Analyst
2012 年 12 月 7 日

Perhaps install the same video adapter as you have.

  0 件のコメント

サインイン to comment.


Login_Name
回答者: Login_Name
2012 年 12 月 7 日

Set the renderer of the GUI figure to painters or zbuffers and try again.

  0 件のコメント

サインイン to comment.



Translated by