필터 지우기
필터 지우기

Inputdlg on R2017b gets cut when too large a prompt is entered

조회 수: 2 (최근 30일)
Alon Spinner
Alon Spinner 2019년 2월 5일
편집: Alon Spinner 2019년 2월 5일
Hi,
I have encounterd a bug in inputdlg, and I am asking for some advice as a way to solve it, or find an easy workaround.
In attempt to allow the user to enter 16 points for a bezier patch, I am calling inputdlg in such a manner:
Prompt={'[1,1]','[1,2]','[1,3]','[1,4]'; %indexing of control points [u,v] directions
'[2,1]','[2,2]','[2,3]','[2,4]';
'[3,1]','[3,2]','[3,3]','[3,4]';
'[4,1]','[4,2]','[4,3]','[4,4]';};
Prompt=Prompt(:);
Prompt{1}=sprintf(['Patch %g\nEnter control point vectors [x,y,z] indexed [u,v]\n\n',Prompt{1}],1);
DefPnts=round(rand(16,3)*10); %control points
DefPnts=cellstr(num2str(DefPnts)); %create prompt for inputdlg
Uinput=inputdlg(Prompt,'Bezier control points selection',1,DefPnts,'on');
The result I am getting is a cut/offset text. Please see the red mark in the picture below, indicating that the text box is overwriting the catagory text.
This happens on two different monitors (same monitor resolution though):
I believe the cause of this is the long prompt string, and I'd rather keep it long if possible.
Capture.JPG
Thanks in advance,
Alon

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by