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: Text Editor
Topic Summary: Has anyone done a richText editor for dialog boxes?
Created On: 29-Aug-2007 20:55
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.
Answer This question was answered by Matt Hall, on Thursday, August 30, 2007 6:54 PM

Answer:
Thanks. I kind of thought this would be the answer I would get.
 29-Aug-2007 20:55
User is offline View Users Profile Print this message


Matt Hall

Posts: 6
Joined: 19-Mar-2004

I'm looking for two a way to create a toolbar with "Bold", "Italic", and indent/bullet features that interact with the richText DBE. I'm using 7.1 still and when I right click on the richText DBE, I only get the standard richText options, no indent or bullets.

All the examples show how to create button bars and menu options with anything you want on them, but it doesn't show (or even elaborate) on how you would do inplace editing of text within a richText DBE. Please don't confuse this question with doing inplace text editing of attributes, this is purely from a dialog-box DBE.
Report this to a Moderator Report this to a Moderator
 30-Aug-2007 15:33
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

Matt,

the attached script exemplary shows how bullets and indentation can be modified in a richText DBE. I hacked this just now, and the key perm is "applyTextFormattingToParagraph". However, the related problem is to identify the selected paragraphs, which I solved quite crude, so there might be a better way to do this. The second related problem is that you _must_ select text in the DBE before you can actually toggle e.g. the bullets. This is because I know of no way to identify the cursor position in a rich Text DBE. Someone out there knows a way for doing this?

The other RTF stuff, like bold and italic, is, as you said, already there at a right click. I am no expert on the context menus, but I guess the DXL routines which are called when you select an entry there, exist somewhere in the DOORS dxl directory, si it should be possible to call those from your own toolbar.

Regards,

Peter
Report this to a Moderator Report this to a Moderator
 30-Aug-2007 18:54
User is offline View Users Profile Print this message


Matt Hall

Posts: 6
Joined: 19-Mar-2004

Answer Answer
Thanks. I kind of thought this would be the answer I would get.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.