![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Font Size in Layout DXL Column Topic Summary: Created On: 27-Nov-2003 10:17 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
You'll need to wrap your raw "Results" in rich text markup that defines fonts. It will end up resembling: "/{font commands/} /{Results/}". Hopefully someone else will interject correct syntax here.
Then use command "displayRich" instead of "display". - Louie |
|
![]() |
|
![]() |
|
Yep,
You can change the font size by using the font function. Although, a bit limiting I'm sure you can set it to the desired font. Read the usage of the font function in the DXL manual. Here is an excerpt: ----------------------------------------------------------------------------------------------------- void font(DBE canvas,int level,int mode) Sets the font for drawing strings on the canvas. The font is specified by two logical values corresponding to those in the Font Options window. The level argument is in the range 1 to 9 to represent the level in the tree at which a node appears. Essentially, this argument controls the size; level 1 is the top level of heading and typically appears in a large typeface. The mode argument controls which font is used: 0 sets body font, 1 sets heading font, and 2 sets graphics font. You can also use the constants HeadingFont, TextFont, and GraphicsFont. Note: The actual font size and typeface depend on the user's settings. ----------------------------------------------------------------------------------------------------- HOW TO CHANGE FONT SIZE In the layout DXL column place the following code at the top: DBE myCanvas = getCanvas() font(myCanvas,1,0) I picked 1,0 for the second/third parameters just as an example. Edited: 2-Dec-2003 at 00:06 by Douglas Zawacki |
|
![]() |
|
![]() |
|
You'll need something like the code below to change the way the text is displayed in rich text format. Down side is, DOORS (at least v6) ignores the font size RTF keyword. If you try the code below, you'll see the bold and italic work, but no matter what you do with the \\fs##, you can't change the font size.
I haven't tried it with canvases yet -- they're still new to me... ------------------------- Paul dot Tiplady at TRW dot com TRW Automotive |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Font Size in Layout DXL Column
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.