Window Size of Guide-Program keeps altering
9 ビュー (過去 30 日間)
古いコメントを表示
Hello there.
I created a program in Guide and also specified this line in the m-file:
set(handles.figure1,'Position',[400 400 500 500]);
This is supposed to define the position (400 units away from lower left corner of the window) and the size of the window 500x500. This works perfectly on my computer (windows 7).
My coworker on the other hand always get problems with it. He's using both Win7 and Linux; on both computers the size of the window differs and the contents are only half visible. To specify this: There is a part on the top and the right missing form the window.
How do I fix this?
Thanks, Yours Henri
0 件のコメント
回答 (1 件)
Image Analyst
2011 年 7 月 30 日
Make sure the "units" property of all your controls is set to "normalized." Even then there may be slight differences in size and placement due to different video adapters and their settings.
2 件のコメント
Image Analyst
2011 年 7 月 30 日
All numbers need to be in the 0-1 range if you use normalized units. You're using 110 and 100 - that won't do since they're bigger than 1.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!