Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 1-Dec-2003 22:33
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 2-Dec-2003 00:03
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 97
Joined: 14-Aug-2003

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
Report this to a Moderator Report this to a Moderator
 4-Dec-2003 11:08
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.