필터 지우기
필터 지우기

use of Slider with UI control

조회 수: 2 (최근 30일)
Karthik KJ
Karthik KJ 2012년 4월 24일
Hi I am creating the edit boxes in run time using UI control. But when I am adding more number of edit boxes, then it is going out of the figure limit. so how can i use an slider bar so that the editboxes created can be visible. Any hint to start with.
Edit boxes are created like this
for i=1:str2num(get(handles.nosensorentry_tag,'string'))
handles.sensname(i) = uicontrol('style', 'edit','Position', [50, 490-(i-1)*22, 180, 18],'BackgroundColor',[1 1 1]); guidata(hObject, handles)
end
Is it the position of uicontrol editbox has to be referenced with slider?

답변 (1개)

Sean de Wolski
Sean de Wolski 2012년 4월 24일
You could use normalized figure units so that either the figure resizes or the edits resize based on the number of them.

카테고리

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