Home End User

Reordering the Buttons

edited February 2013 in End User
Hi!

When I try to make my own PreviewDialog (like in ) I have some small
problems:

* I can Add a Button but not Insert it on the second position. How can
this be done?


* When I want to use different Previews, I have to call the
TppPreviewPlugIn.Register(TMyPreviewPlugin); before I print, or is
there another way?

Thank you!

Gruß aus den Bergen
Günter

Comments

  • edited February 2013
    Hi Gunter,

    1. It is not possible to insert another button into the existing
    toolbar. If you would like to customize the toolbar, you will need to
    recreate it from scratch (completely overriding the CreateToolbarItems
    routine.

    2. Calling the TppPreviewPlugin.Register routine is the only way to
    register a new preview window at run-time. If you are using multiple
    previews in the same app, this is highly recommended.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2013
    In article <51150af8$1@mail.>, Nico Cizik (Digital Metaphors) wrote:


    Thats bad. Maybe you can call a Event/Method after you created a Button in
    your standard-preview, so that I can make something like this:

    if Button=MailButton then MakeMyOwnButton;


    Okay. Thank you.

    Gruß aus den Bergen
    Günter
  • edited February 2013
    In article <51150af8$1@mail.>, Nico Cizik (Digital Metaphors) wrote:

    I searched the sources and I found that it is possible via the
    Items.Insert(Pos,Item) - Method.

    Gruß aus den Bergen
    Günter
This discussion has been closed.