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: Replicating Main Column Heading Font in DXL Layout
Topic Summary:
Created On: 20-Feb-2007 05:58
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.
 20-Feb-2007 05:58
User is offline View Users Profile Print this message


Paul Miller

Posts: 376
Joined: 2-Oct-2002

Hi,

I need to mimic the Headings in the Main Column within a DXL Layout column. Does anyone know how to display the Headings in a DXL layout column so that they have the same font settings as they appear in the Main Column and are also preceeded by their heading number?

The built in "Compare Modules" function can create such a DXL layout but when viewing the DXL code, there's not a lot to go on as Telelogic have embedded the detailed code somewhere else.

-------------------------
Paul Miller
Specification Practices Specialist,
EuroCyber,
Melbourne, Australia.
Mobile: +61 (0)418 135 103
Web Site: http://www.eurocyber.biz
E-mail: miller@eurocyber.biz">pmiller@eurocyber.biz
Report this to a Moderator Report this to a Moderator
 20-Feb-2007 06:06
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

I have used something like the following to display a copy of the main column in a layout DXL column:

const string MAIN_COLUMN_COPY_DXL =
"pragma runLim, 0\n" //-
"if (obj.\"Object Heading\" \"\" != \"\"){\n" //-
"font(getCanvas, level(obj), HeadingsFont)\n" //-
"displayRich(number(obj) \" \" obj.\"Object Heading\" \"\")}\n" //-
"if (obj.\"Object Text\" \"\" != \"\"){\n" //-
"font(getCanvas, level(obj), TextFont)\n" //-
"displayRich(richTextWithOle(obj.\"Object Text\"))}\n"

int Columns = 0
Column NewColumn = null
Module OriginalModule = current

// Build up a DXL column copying the main column look
NewColumn = column(Columns)
title (NewColumn, description(OriginalModule))
width (NewColumn, 200)
dxl(column Columns, MAIN_COLUMN_COPY_DXL)
Columns++

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
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.