Using GUIDE GUI was build in Matlab 2014b but now not opening properly in 2016b

2 次查看(过去 30 天)
I had made GUI in guide with Matlab 2014b now opening it is 2016a but some buttons are not shown on screen. Is this due to screen size? (because I had made this GUI on a PC having 22" screen size and now opening it on a 15" Screen)
Does the Matlab automatically scales the objects used in GUI (e.g. Axes etc) when opened on different screen size/resolution?

采纳的回答

Jan
Jan 2017-2-22
You can defined the figure position and size relative to the screen or with absolute coordinates, see 'normalized' or 'pixel' units. The same can be done with all GUI elements like axes, uipanel and uicontrol relative to the figure. Therefore I is possible, that the layout depend on the screen size.
  2 个评论
Muhammad Abdurrehman
I just checked In GUI Options Resize Behavior: there are three options
- Non-resizeable - Proportional - Other (Size Changed Function)
Can you please explain which function in last two options should be selected or how to write SizeChangedFcn?
Walter Roberson
Walter Roberson 2017-2-22
Select Proportional if you want everything to be resized to 15/22. This might include text size.
Select Size Changed Function and provide code if you want to change the way you arrange your graphics elements based upon screen size. For example, you might want
Plot1 Plot2 Plot3
Description
side by side on a wide screen, but on a narrower screen instead of making each plot 2/3 the size, you might want to arrange as
Plot1 Plot2
Plot3 Description
The function you provided would have to examine the figure size and make decisions about what to place where.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by