Re: Display mutiple lines strings in matlab edit box issue
- From: "cuiyouzhi0000@xxxxxxxxx" <cuiyouzhi0000@xxxxxxxxx>
- Date: Fri, 13 Feb 2009 00:50:26 -0800 (PST)
On Feb 13, 11:15 am, "Matt Fig" <spama...@xxxxxxxxx> wrote:
Why not put the new string on top of the old strings? That way you can always view the latest addition.
Just make sure the editbox is tall enough to show however many lines is printed each time the log records. This example adds one line:
%-------------------------------------------------------------------------- --------------%
figure('pos',[500 500 200 50],'menub','no')
ed = uicontrol('sty','ed','mi',0,'ma',2,'pos',[10 10 180 30],'fonts',14,...
'str',{'one';'two';'three';'four'});
uiwait(msgbox('Click to add string','Add String')); % Simulate a callback trigger.
addedstr = {'New'}; % Add this string to the edit box.
set(ed,'str',cat(1,addedstr,get(ed,'str')));
%-------------------------------------------------------------------------- --------------%
dK8<E@8B$<VVF:9<VKGKFVPDD<@]F:8?EFpMVvF8VV{>888F?C9LV?0]LGC
;o), thanks for your example.
In fact, I have done like your suggest, display new string on top of
the old strings.
but our team think, we should keep same log print style with all of
our products.
because other product, using our product on linux command window, we
display log on the bottom of the window. So do matlab command window.
So this issue was reopened.
anyway, any ideas?
John Cui
thanks very much!
.
- References:
- Display mutiple lines strings in matlab edit box issue
- From: cuiyouzhi0000@xxxxxxxxx
- Re: Display mutiple lines strings in matlab edit box issue
- From: cuiyouzhi0000@xxxxxxxxx
- Re: Display mutiple lines strings in matlab edit box issue
- From: Matt Fig
- Display mutiple lines strings in matlab edit box issue
- Prev by Date: uitable: align text to right
- Next by Date: optimize cycles for
- Previous by thread: Re: Display mutiple lines strings in matlab edit box issue
- Next by thread: Re: Display mutiple lines strings in matlab edit box issue
- Index(es):
Relevant Pages
|