toolbutton focus

7 posts, 0 answers
  1. avner
    avner avatar
    11 posts
    Member since:
    Feb 2008

    Posted 25 Feb 2008 Link to this post

    Hi again,

    I have cut copy and paste toolbar buttons on my toolbar - whenever I click one, the focus on the active control is lost so I can't send a clipboard command to the control. Any ideas on how to achieve this?

    reagrds,

    Avner
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 26 Feb 2008 Link to this post

    Hello Avner,

    Have you tried to subscribe to the LostFocus event of the control? In the event handler you can set the focus back  by calling the Focus method.

    Kind regards,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. avner
    avner avatar
    11 posts
    Member since:
    Feb 2008

    Posted 26 Feb 2008 Link to this post

    Thank you for your suggestion, but wiring up the lostfocus event doesn't sound like a good solution. For a start you would have to conditionally refocus the control only if the control that gets the focus is the toolbar. Its further complicated when you have user controls and an MDI application.

    The way I got around the problem was by remembering the last active control in my main form and applying clipboard operations to that control.

    I feel the correct solution is for the Telerik toolbar not steal the focus. Even the windows forms toolstrip has this capability.

    regards,

    Avner
  5. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 27 Feb 2008 Link to this post

    Hello avner,

    Thank you for contacting me.

    I agree with you that the toolBar shouldn't be able to get the focus. We will investigate this issue and correct it. The solution that remembers the last active control is a good workaround with the current implementation.

    Do not hesitate and write me back if you have more questions about RadToolStrip.

    All the best,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. MikeB
    MikeB avatar
    42 posts
    Member since:
    May 2008

    Posted 04 Aug 2009 Link to this post

    Hi,

    Is this still an issue with version 2009 Q2 SP1?
    I am having the same problem after replacing an existing ToolStrip with RadToolStrip.

    Thanks,

    Mike
  7. Aaron
    Aaron avatar
    8 posts
    Member since:
    Jul 2009

    Posted 06 Aug 2009 Link to this post

    MikeB,

    This issue appears to still exist in SP1. I think going with avner's workaround is probably the best idea for now.

    - Aaron
  8. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 07 Aug 2009 Link to this post

    Hello Aaron,

    I confirm that this issue still exists in Q2 SP1 version. We will do our best to fix this issue for the next version of our suite. Thank you for your feedback.
     
    Greetings,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for WinForms is Visual Studio 2017 Ready