Inputdlg on R2017b gets cut when too large a prompt is entered
1 次查看(过去 30 天)
显示 更早的评论
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/202840/Capture.jpeg)
Thanks in advance,
Alon
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!