Slider appearance on Macs in a cross platform GUI
조회 수: 1 (최근 30일)
이전 댓글 표시
UICONTROLs appear very differently on PCs and Macs. In particular, sliders have a much larger vertical extend on Macs. Thus, GUIs that I create (in a space-efficient way) on a PC will look horrible on a Mac and closely spaced sliders will overlap and hide each other.
Is there a way to adjust the appearance of the sliders (and possibly other uicontrols) on a Mac?
Or any other ideas to (automatically) adjust the GUI appearance on the OS?
댓글 수: 0
답변 (1개)
Michelle Hirsch
2011년 1월 25일
This page gives a whole range of tips for making GUIs that look good on multiple operating systems:
It suggests using characters units for your uicontrols, as long as your GUI is non-resizable. If it is resizable, it recommends using normalized units.
댓글 수: 2
Walter Roberson
2011년 1월 25일
Stephan, are both the height and width of the Position properties being ignored on the Mac? If you get() the Position after you set it, is it the same as what you set? If you set() the size equal to the height and width from the Extent property (and add a slight margin) does it look reasonable for each individual slider, or is Extent disconnected from reality?
I think I would
get(0,'Default')
to see if I could see some default setting that differed on the Mac. I would also cross-check that the same font and font size was being used on both.
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!