Bold button not working as expected

  • Hi

    My Bold button is not working the way I would expect.

    When I select a word in my WPRichEdit, the bold button dosen't show the state of the selected word
    - bold button down for a word in bold,
    - bold button up for a word thas is not in bold.

    I have a TWPRichText linked to a TActionList.
    My TActionList has the TWPABold action.
    I have a TWPToolPanel with a TWPToolButton in it.
    My TWPToolButton is linked to this action and has AllowAllUp=true and GroupIndex<>0.

    Any help appreciated.

  • Thank's for you answer.
    Okay, it's working this way, having in my TWPToolButton the property "StyleName" set to 'WPI_BOLD' instead of using the property "Action".

    But I'd like to work with a TActionList, so I can re-use the action both in my TMainMenu and my TWPToolButton.

    Using the TWPToolsCustomAction TWPABold in the TMainMenu has a correct behavior (menu stay checked if bold), but not in the TWPToolButton (button dosen't stay down if bold).

    Is it possible to get a correct behavior for the TWPToolButton by using the property "Action" only?