Rich text in DBE

Hi all,

I didn't try much because I just think it can't be done, but I may be (hopefully) wrong: is it possible to have rich text (bold, italics, different sizes) in labels of DBE?

Thanks!
Alberto
albertosegovia@work - Wed May 27 07:21:05 EDT 2009

Re: Rich text in DBE
Ron_Lewis - Wed May 27 08:43:44 EDT 2009

You can simulate this with either canvas or richtext box

Re: Rich text in DBE
dpechacek - Thu May 28 08:11:48 EDT 2009

You can use the typical keyboard shortcuts to apply rich text formatting in a rich text box. Ctrl+B for bold. Ctrl+I for italics. Ctrl+U for underline. As for different sizes, you'd have to program a button to do it.

AAI Services, Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Re: Rich text in DBE
djakad - Mon Jun 08 13:22:39 EDT 2009

dpechacek - Thu May 28 08:11:48 EDT 2009
You can use the typical keyboard shortcuts to apply rich text formatting in a rich text box. Ctrl+B for bold. Ctrl+I for italics. Ctrl+U for underline. As for different sizes, you'd have to program a button to do it.

AAI Services, Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

As for the label() DBE itself, you cannot change the font style or size.

As mentioned, you can have bold, italics, and/or underline in a richField() or richText() DBE. You can program this using rich text tags, such as:

Bold = "{\\b This is bold \\b0}"
Italics = "{\\i This is italics \\i0}"
Underline = "{\\ul This is underline \\ul0}"

You cannot change the text size in a richField() or richText() DBE. You can try, but DOORS seems to over-ride any rich text tags related to font size.

As Ron, mentioned, you can simulate different font sizes and font syles (Arial, Times Roman, etc.) using a canvas. It's extra hokey, becuase to change the font, you have to change/use the user's font settings. The attached DXL demo will give some clues as to how to use fonts on a canvas.
Attachments

attachment_14259902_Fonts_Demo.dxl