scroll bar on input dialog box

I have a very large input box,which can ask the user to input around 30 values. The box is bigger than the screen of my computer so I'm not able to see all the inputs. Is it possible to add a scroll bar to this?
Thanks

답변 (1개)

Walter Roberson
Walter Roberson 2011년 4월 30일

0 개 추천

Maybe. How is your input box constructed?

댓글 수: 4

Ronni
Ronni 2011년 4월 30일
I used inputdlg. This is an example of what I did except it's a small box compared to mine. Mine is with 30+ variables that have detailed 'prompts'.
prompt = {'variable1','variable2','variable3'};
dlg_title = 'required user parameters';
num_lines = 1;
def = {'2','4','3';
answer = inputdlg(prompt,dlg_title,num_lines,def);
Walter Roberson
Walter Roberson 2011년 4월 30일
inputdlg() has no provision for a scroll-bar in its code. It would be possible to edit one in, but because the code has firm ideas about how to size things properly, it would probably take a bit of work to puzzle it out.
It might be easier to construct your own routine.
Walter Roberson
Walter Roberson 2011년 4월 30일
You might also consider reducing the number of inputs in the dialog and using multiple dialogs.
Matt J
Matt J 2014년 5월 19일
inputdlg() has no provision for a scroll-bar in its code.
Aarrrgh. That's terrible!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Strategy & Logic에 대해 자세히 알아보기

질문:

2011년 4월 30일

댓글:

2014년 5월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by