How not to change focus when I click a TRzBitBtn button

Home Forums Konopka Signature VCL Controls (formerly Raize Components) How not to change focus when I click a TRzBitBtn button

Viewing 1 reply thread
  • Author
    Posts
    • #3828
      Leonardo Bonomi
      Participant

        When I click a TRzBitBtn on a form, the button itself gets the focus.

        Is it possible not to change focus when I click the button?

        Thanks,

        Leonardo

      • #3829
        Ray Konopka
        Keymaster

          Hi Leonardo,

          The TRzBitBtn is a windowed control and by design captures the input focus. If you do not want to capture the focus, you can use a TRzToolButton instead, which is a graphic control and does not capture the input focus. That’s why it works well for toolbars. You can change the ShowCaption property to True and then make it work like a TRzBitBtn (except it doesn’t change the focus).

          Ray

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.