Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 12262

Re: Highlighting text in Arbortext Editor 6.1 F000

$
0
0

Create a graphic for the icons

   

1. Create a graphic file with two icon images for two highlighting colors. The example below uses yellow and red background colors. Each icon should be 16 x 16 pixels with a magenta background color. For an example, see ToolbarApplication.bmp in the Arbortext Editor\lib\dialogs directory.  


2. Name the graphic file ToolbarHighlight.bmp and put it in the Arbortext Editor\custom\dialogs directory.

     

Add the icons to the Application toolbar

 

1. Go to Arbortext Editor\lib\dialogs and copy editwindow.xml.

 

2. Paste the copy of editwindow.xml in Arbortext Editor\custom\dialogs.

 

3. Open the new editwindow.xml in Arbortext Editor and make the following changes:

 

3.1. Insert an <imagelist> element in <imagegroup> between <imagelist path="ToolbarApplication.bmp> and <imagelist path="Toolbar Record.bmp>.

 

3.2. On the new <imagelist> element, set imagewidth=16 and path="ToolbarHighlight.bmp".

 

3.3. Within <imagelist path="ToolbarHighlight.bmp">, insert an <image> element and set id="imageHighlightYellow".

 

3.4. Insert another <image> element and set id="imageHighlightRed". The new code should look like this:

 

     <imagelist imagewidth="16" path="ToolbarHighlight.bmp">
     <image id="imageHighlightYellow"/>
     <image id="imageHighlightRed"/>
     </imagelist>


3.5. Locate <button id="Toolbar_Paragraph"> at the end of <toolbar id="toolbar4"> and insert a <checkbox> element.


3.6. Modify the attributes on <checkbox> as follows:


     <checkbox command='td _font -none;it _font; mt BackColor="#FFFF00"'

     id="highlight_Yellow" image="imageHighlightYellow"
     statustext="Yellow highlighting" tiptext="Yellow highlighting">
     </checkbox>

     Note: You can use whatever wording you want for the statustext and tiptext attributes.

3.7. Copy the modified <checkbox> and paste it after itself and change the attributes as follows:

 

     <checkbox command='td _font -none;it _font; mt BackColor="#FF0000"'
     id="highlight_Red" image="imageHighlightRed"
     statustext="Red highlighting" tiptext="Red highlighting">
     </checkbox>

 

4. Save editwindow.xml and exit Arbortext Editor.

 

5. Start Arbortext Editor and open a document. If the toolbar is not displayed, enter the following at the command line: set toolbar4=on.

 

6. Select some text and click on the icon for yellow highlighting. The selected text will be displayed with a yellow background. The <_font> Touchup tag is there but is not shown.

 

7. Select some text and click on the icon for red highlighting. The selected text will be displayed with a red background. Again, the <_font> Touchup tag is there but is not shown.

 

If you want an icon to insert a <_font> tag that opens the Font dialog, create the desired graphic image and add it and the following to editwindow.xml:

 

     <checkbox command="td _font -none;it _font;mt" id="font_Dialog"

     image="imageFontDialog" statustext="Font Dialog" tiptext="Font dialog">

     </checkbox>

 

Good luck!

Suzanne


Viewing all articles
Browse latest Browse all 12262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>