Reordering the Buttons
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
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
This discussion has been closed.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
I searched the sources and I found that it is possible via the
Items.Insert(Pos,Item) - Method.
Gruß aus den Bergen
Günter