From: Matt Fig on 4 Apr 2010 00:16 As I said, set the min and max properties of the edtibox so that max=10 and min=1.
From: Sadik on 4 Apr 2010 00:25 OK guys, here is the solution: h = uicontrol(... % ************ YOU SHOULD SAY h = uicontrol(... SEE BELOW .... 'Units','normalized',... 'Position',[.1,.1,.8,.8],... 'BackgroundColor','w',... 'HorizontalAlignment','left',... 'FontSize',12,... 'Style','text',... 'String',[ 'UITABPANEL creates a group of tabbed ']); This gives you the handle h that will enable you to change the text displayed in the static text. Now you can do: set(h,'String',{'The quick brown fox';'jumps over the lazy dog';'just another line'}); The key point is that you should use curly braces { } rather than [ ] so that your lines will not need to be of the same length. Please copy and paste the above lines to see if this is what you are looking for? Best.
From: Muhammad on 4 Apr 2010 00:33 "Sadik " <sadik.hava(a)gmail.com> wrote in message <hp93b6$n43$1(a)fred.mathworks.com>... > I think I have got the problem. The aim is to have text wrapping. Although I do not know the exact answer. > > Muhammad, if that is not true, could you upload an image of what you want and send the link? You could even prepare the image in microsoft paint. > > Best. Exactly, I need a box that can adjust the text. The example is in the notepad that has the wrapping text mode.
From: Muhammad on 4 Apr 2010 00:54
Many thanks, I got it. |