Beiträge von psswp

    I can not see any reference to it in the manual, and following the source code needs several hours, so:

    1.) How can I get the actual WPRichText1 Printer, and how can I set it programatically to another one without calling the setup dialog.

    2.) How can I get printer parameters programatically like printer name, orientation, paper size after calling WPRichText1.PrinterSetup.

    I see that all the main menus and most of the submenus in the MainMenu object are not translated, is it possible to link them to the WPLanguageControl XML data, to translate myself the menus usng the XML translation file.

    Insisting from my last reply: if the "Save As" button is the one with a floppy symbol, where is the Save button in the "Configure Toolbar".

    Thank you wpsupport for your patience, I am learnig WPTools at the pace of your responses and experimenting with the demo code.

    * I remember your first response about separators, so now, what I mean is not a separator control but a property to have a gap between buttons to decrease the button density. That is, instead of having a gap of 1 pixel between buttons, use a default property for changing it to 4, 5 or 6.

    * Demo program A has an ActionList and WPImageList controls, but I can not see any modified property o event, and they are not linked to WPRichText, so what are they used for ?

    * I experimented with the following code. Is this a correct way to intercept menu actions

    * Can you show me in a few lines of code how is OnToolbarIconSelected implemented. Can I inherit the default behaviour, and add my own code as well to any event.

    * I can not see an icon or button to show "Save As" in the TWPToolbar.

    Here again. Following your indications, I am using as a basis the WPMiniEdit module from the samples.
    As there is not a menu, I made one, adding WPDefActions7 and code from other examples using:

    FWPDefAct := TWPDefAct.Create(Self);
    // No, we use OnGetWPRichText!
    //WPRichText1.ActionList := FWPDefAct.StdActions;
    FWPDefAct.OnGetWPRichText := GetToolsEditor;
    Menu := FWPDefAct.MainMenu;

    This code is confusing for me, because of the comment "No, we use ONGetWPRichText", as I also want to modify some standard actions.
    To add my code to standard actions, do I need to add a TWPDefaultActions to the form, or I can use the StdActions from WPDefActions7 datamodule.
    So, if I want to modify, say, the "Save" menu, how is this done.

    Also I see that the menus in the group "View" are not implemented. To implement them, do I need to modify WPDefActions7 source, or there is another programatic way to do so.

    I can not see any property to add more space between buttons in the WPToolBar, do I need to modify the WPTbar source code, or there is another programatic way to do so.

    Just purchased wptools 7 Pro. As a newbie (for this tool, not as a programer), I am troubled in getting acquainted in the inner details of this tool.

    Just being a newbie, perhaps I have a more autoritative position in that matter, so here are some opinions and questions about.

    1.) Newbies are who with more reason need a plain and instructive user manual, and, in my modest opinion, I am having trouble in to know what are the differences between TWPToolPanel and TWPToolBar, specially how the connection of every button with the actions work. But wait, what are the actions and the action list ?. I can not see any explanation of what I need to do if I want to add some code to a standard action, for example, adding my code to the "Save as" action.

    2.) Even a more simple question: If I want to make my own Toolbar, where can I see explained how to connect the buttons to actions.? Perhaps a demo program with the full set of buttons with the corresponding event code will be a very valuable time saving for beginning with.

    3.) If I want a more personalised Toolbar, which is my case, as I have learned until now, it seems that I must use TWPToolpanel, and in the StyleName property of the button choose the icon related to the function I need, but what about GroupIndex and StyleGroup. Where are they defined and what are they used for.

    4.) How can I insert separators between groups ?.

    5.) Perhaps other enthusiastic and/or generous users could colaborate in to make other set of icons to choose from, with other appearances different from the "official" ones.

    6.) Where can I see an example on how to send a document by email.

    7.) Where is explained if the export to PDF needs some other paid modules, or it could be done directly using WPTools7 pro.

    8.) How can I connect the status of the RTF editor to a status bar to display, for example, page number, line and column number, CAPS state, zoom view percent, etc.