Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Customising UD Menus

Status
Not open for further replies.

Microbe

Programmer
Oct 16, 2000
607
AU
Hey everyone,

I am not sure why, but UD does not include "justify" as a text alignment option. Perhaps it is not part of the official language standard.

I have worked out how to show "justify" in the menus, but it doesn't do anything in the code.

I have put

<menuitem name=&quot;_Justify&quot; enabled=&quot;true&quot; command=&quot;dw.getDocumentDOM().setTextAlignment('justify')&quot; checked=&quot;dw.getDocumentDOM().getTextAlignment() == 'justify'&quot; id=&quot;DWContext_Text_Alignment_Justify&quot; />

into menus.xml. But it seems that =&quot;dw.getDocumentDOM().setTextAlignment('justify')&quot; doesn't hook in anywhere.

Anyone have any idea if it is possible to create &quot;new&quot; commands in DW.

If so, how?
Steve Davis
hey.you@hahaha.com.au
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top