![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() Answer: Thanks. I kind of thought this would be the answer I would get. | |
![]() |
|
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. ![]() |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Thanks. I kind of thought this would be the answer I would get.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Text Editor
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.