Skip to main content
1-Visitor
October 1, 2010
Question

"aligning" a toolbar (with one button) "right" in the toolbar area

  • October 1, 2010
  • 1 reply
  • 538 views
I've got a toolbar with one button defined like this:

<toolbar id="mytoolbar" name="myname" x="2000" y="0">

in ...custom/dialogs/mytoolbar.xml

When the custom directory is parsed and files executed on the open of an XML
instance for that doctype, my button is displaying "aligned right" on the
very top row of the toolbar area. I want the toolbar to redisplay "aligned
right' if/when an author resizes or maximizes the Editor window.

Possible? How? I can't seem to find a command that will relocate that
toolbar, let alone starting to look for the hooks/callbacks.
dlgitem_hide/_show simply make it disappear and reappear, but in-place.

I must be thinking wrong ...

--
Paul Nagai

    1 reply

    1-Visitor
    October 4, 2010
    Paul,

    I think you may have reached beyond the customization limits of
    Arbortext on that one. Over the years I've tried off and on to do
    similar things, but never any luck that I can remember.
    Having said that, if I were to attempt it again, I would look at using
    java, javascript, etc. to get a DOM doc representation of the xui for
    your toolbar and change the x,y coordinate attributes that way. As for
    what callback/hook/event to listen for, nothing is jumping off the pages
    of the documentation at me.
    If you figure this one out definitely let the rest of us know how you
    did it.





    Brian Jensen
    bjensen@bluelid.com