Indicating focus

6 posts, 0 answers
  1. Mel Grubb
    Mel Grubb avatar
    4 posts
    Member since:
    Mar 2009

    Posted 23 Mar 2009 Link to this post

    I'm working on a data entry form that will be largely navigated with the keyboard, and I can't seem to get the RadButton to indicate focus.  I can see in Theme Builder that it has states set that react to mouseover events, and I tried adding an Or condition to those states to make them activate when the mouse was over them OR the control had focus.  That did nothing.

    I also tried setting some different properties on the FocusPrimative element, and that didn't do anything either.

    Is there an example app or tutorial that can show me how to get a proper focus rectangle to show up on a button?
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 26 Mar 2009 Link to this post

    Hi Mel Grubb,

    Please find the answer to your questions in your support ticket.

    Sincerely yours,
    Nick
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Gadi Gamburg
    Gadi Gamburg avatar
    2 posts
    Member since:
    Jan 2010

    Posted 27 Sep 2010 Link to this post

    I'd like to know the answer to this one as well.

    Regards,
    Gadi
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 01 Oct 2010 Link to this post

    Hello Gadi,

    Thank you for the question.

    The conversation between Mel and my colleague Nick concerns an old version of RadControls. Our latest releases do not support the FocusPrimitive element and you can't apply a special style to the focused RadControls.

    The only RadControls that support the desired behavior are our editors, thanks to their ContainsFocus state. This state allows you to change the backcolors and the border colors of an editor when it is focused. 

    Regards,
    Nikolay
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Gadi Gamburg
    Gadi Gamburg avatar
    2 posts
    Member since:
    Jan 2010

    Posted 03 Oct 2010 Link to this post

    You mean that there's no way for me to get the focused effect of the dotted line on a RadButton using code?

    See attached print screen - The top button.
  7. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 07 Oct 2010 Link to this post

    Hello Gadi Gamburg,

    Thank you for the question.

    The coversation here concerns the FocusPrimitive which allows you to achieve more custom and advanced look when a button is focused. As I mentioned the FocusPrimitive currently cannot be modified in the new Visual Style Builder.

    The dotted rectangle is a feature separate from the FocusPrimitive feature. You should have no issues with using the dotted rectangle for your buttons. Just set the buttons' AllowShowFocusCues property to true (it is true by default):
    this.radButton1.AllowShowFocusCues = true;

    If you have any issues with this feature, please open a new support ticket and send us a project which demonstrates them. This will allow us to understand your case and provide you with further assistance.

    Best wishes,
    Nikolay
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for WinForms is Visual Studio 2017 Ready