Execute WPToolbar buttons programatically

  • >I have been handed an app a former co-worker was working on. I am fairly
    >new to C++ Builder & WPTools & need some help!!!
    >
    >How would I toggle the WPToolBar buttons programatically? For instance
    >toggling bold or underline from within the program rather than requiring
    >a mouse click?

    Please open unit WPRich and look through the procedure
    OnToolBarIconSelection. This is the code which is processed for all
    toolbar buttons and also for the actions.

    For example

    WPRichText1.Load;

    will load a file or

    WPRichText1.CurrAttr.AddStyle(afsBold) makes text bold.