Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Text formating in diologue boxes

Subject: Text formating in diologue boxes

From: Vasilis Serghi

Date: 19 May, 2003 11:47:53

Message: 1 of 5

Is there any way to format the text in the box so that I can enter a new
line or have it centred, or bold etc, instead of wrapping the text around to
the next line?

Similarly for questdlg, errordlg, msgbox and helpdlg

--
Vas

Subject: Text formating in diologue boxes

From: rpoepa@yahoo.com (Randy Poe)

Date: 19 May, 2003 07:05:24

Message: 2 of 5

"Vasilis Serghi" <vserghi@jaguar.com> wrote in message news:<baacom$ae11@eccws12.dearborn.ford.com>...
> Is there any way to format the text in the box so that I can enter a new
> line or have it centred, or bold etc, instead of wrapping the text around to
> the next line?
>
> Similarly for questdlg, errordlg, msgbox and helpdlg

To control where linewraps take place, i.e., to enter multiple
lines, use a cell array of strings instead of a single
string:

errordlg({'This is a ','multi-line','dialog'})

As for the other properties, they aren't available as
options from those built-in dialog functions. They are
available as properties of the text string, but you'd
have to write your own dialog-box code so that you
could get that kind of fine control of objects.

          - Randy

Subject: Text formating in diologue boxes

From: Vasilis Serghi

Date: 21 May, 2003 10:24:52

Message: 3 of 5

Thanks works a treat.

--
Vas
"Randy Poe" <rpoepa@yahoo.com> wrote in message
news:585ab5d8.0305190605.364703dd@posting.google.com...
> "Vasilis Serghi" <vserghi@jaguar.com> wrote in message
news:<baacom$ae11@eccws12.dearborn.ford.com>...
> > Is there any way to format the text in the box so that I can enter a new
> > line or have it centred, or bold etc, instead of wrapping the text
around to
> > the next line?
> >
> > Similarly for questdlg, errordlg, msgbox and helpdlg
>
> To control where linewraps take place, i.e., to enter multiple
> lines, use a cell array of strings instead of a single
> string:
>
> errordlg({'This is a ','multi-line','dialog'})
>
> As for the other properties, they aren't available as
> options from those built-in dialog functions. They are
> available as properties of the text string, but you'd
> have to write your own dialog-box code so that you
> could get that kind of fine control of objects.
>
> - Randy

Subject: Adding text to gray areas (outside plot)

From: cuchuflo@netscape.net (Spongebob)

Date: 21 May, 2003 06:03:32

Message: 4 of 5

Hi guys,

I'm trying to add text (2 boxes) to opposite sides of a plot (UL, LR),
in the gray area, something like 'Proprietary'. I don't want to
interfere w/ the plot title, that's why I wanted to go opposite
corners. Any clues? Thanks in advance,

SB




"Vasilis Serghi" <vserghi@jaguar.com> wrote in message news:<bafgl7$sm66@eccws12.dearborn.ford.com>...
> Thanks works a treat.
>
> --
> Vas
> "Randy Poe" <rpoepa@yahoo.com> wrote in message
> news:585ab5d8.0305190605.364703dd@posting.google.com...
> > "Vasilis Serghi" <vserghi@jaguar.com> wrote in message
> news:<baacom$ae11@eccws12.dearborn.ford.com>...
> > > Is there any way to format the text in the box so that I can enter a new
> > > line or have it centred, or bold etc, instead of wrapping the text
> around to
> > > the next line?
> > >
> > > Similarly for questdlg, errordlg, msgbox and helpdlg
> >
> > To control where linewraps take place, i.e., to enter multiple
> > lines, use a cell array of strings instead of a single
> > string:
> >
> > errordlg({'This is a ','multi-line','dialog'})
> >
> > As for the other properties, they aren't available as
> > options from those built-in dialog functions. They are
> > available as properties of the text string, but you'd
> > have to write your own dialog-box code so that you
> > could get that kind of fine control of objects.
> >
> > - Randy

Subject: Adding text to gray areas (outside plot)

From: Vasilis Serghi

Date: 22 May, 2003 14:27:34

Message: 5 of 5

You can try stampit.m on the Mathworks site. It allows you to place a date
or the calling function filename name, at the bottom of the plot (like a
footnote).

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=124
4&objectType=file

I have tried to get in touch with Tim Burke, the original owner, but his
email bounced back to me with an "This account has been disabled or
discontinued" error. I have made some changes to it, which allow any text or
an internal parameter to be shown also. E-mail me if you want a copy of it.

Note: my version is still pretty much the same as Tim Burke's version with a
few additions.
--
Vas

(These are my own thoughts and views and not the views of FMC.)

"Spongebob" <cuchuflo@netscape.net> wrote in message
news:ab2d71ed.0305210503.1354fa61@posting.google.com...
> Hi guys,
>
> I'm trying to add text (2 boxes) to opposite sides of a plot (UL, LR),
> in the gray area, something like 'Proprietary'. I don't want to
> interfere w/ the plot title, that's why I wanted to go opposite
> corners. Any clues? Thanks in advance,
>
> SB
>
>
>
>
> "Vasilis Serghi" <vserghi@jaguar.com> wrote in message
news:<bafgl7$sm66@eccws12.dearborn.ford.com>...
> > Thanks works a treat.
> >
> > --
> > Vas
> > "Randy Poe" <rpoepa@yahoo.com> wrote in message
> > news:585ab5d8.0305190605.364703dd@posting.google.com...
> > > "Vasilis Serghi" <vserghi@jaguar.com> wrote in message
> > news:<baacom$ae11@eccws12.dearborn.ford.com>...
> > > > Is there any way to format the text in the box so that I can enter a
new
> > > > line or have it centred, or bold etc, instead of wrapping the text
> > around to
> > > > the next line?
> > > >
> > > > Similarly for questdlg, errordlg, msgbox and helpdlg
> > >
> > > To control where linewraps take place, i.e., to enter multiple
> > > lines, use a cell array of strings instead of a single
> > > string:
> > >
> > > errordlg({'This is a ','multi-line','dialog'})
> > >
> > > As for the other properties, they aren't available as
> > > options from those built-in dialog functions. They are
> > > available as properties of the text string, but you'd
> > > have to write your own dialog-box code so that you
> > > could get that kind of fine control of objects.
> > >
> > > - Randy

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us