Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Alon Spinner
Alon Spinner am 5 Feb. 2019
Bearbeitet: Alon Spinner am 5 Feb. 2019
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

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by