Windows Vista Forums

Can the dotted line around a button be turned off?
  1. #1


    Gary F Guest

    Can the dotted line around a button be turned off?

    "When a button has the keyboard focus, the system typically highlights the
    text, icon, or bitmap of a button by surrounding it with a dotted line." from
    Windows SDK.

    When I press ALT or the TAB key, the button with focus is surrounded with a
    dotted line. Is there a way to turn this off?

    It just doesn't look good for non-rectangular buttons.




      My System SpecsSystem Spec

  2. #2


    Gary F Guest

    RE: Can the dotted line around a button be turned off?

    I wish it was that simple. Unfortunately, when I set the Focusable property
    to "false", the button will no longer receive focus and IsFocused is never
    set to "true".

    I find it strange that the dotted line is not part of the visual tree.

    Any other ideas?

    "Erik Thomas" wrote:

    > Set the Button property:
    >
    > Focusable="False"
    >
    > Erik
    >
    > "Gary F" wrote:
    >
    > > "When a button has the keyboard focus, the system typically highlights the
    > > text, icon, or bitmap of a button by surrounding it with a dotted line." from
    > > Windows SDK.
    > >
    > > When I press ALT or the TAB key, the button with focus is surrounded with a
    > > dotted line. Is there a way to turn this off?
    > >
    > > It just doesn't look good for non-rectangular buttons.
    > >


      My System SpecsSystem Spec

  3. #3


    Dennis Cheng [MSFT] Guest

    Re: Can the dotted line around a button be turned off?

    See my post on
    http://forums.microsoft.com/MSDN/Sho...92232&SiteID=1


    "Gary F" <GaryF@discussions.microsoft.com> wrote in message
    news:C1829471-F7D7-4AA7-A7C9-7A31AC14CF15@microsoft.com...
    >I wish it was that simple. Unfortunately, when I set the Focusable
    >property
    > to "false", the button will no longer receive focus and IsFocused is never
    > set to "true".
    >
    > I find it strange that the dotted line is not part of the visual tree.
    >
    > Any other ideas?
    >
    > "Erik Thomas" wrote:
    >
    >> Set the Button property:
    >>
    >> Focusable="False"
    >>
    >> Erik
    >>
    >> "Gary F" wrote:
    >>
    >> > "When a button has the keyboard focus, the system typically highlights
    >> > the
    >> > text, icon, or bitmap of a button by surrounding it with a dotted
    >> > line." from
    >> > Windows SDK.
    >> >
    >> > When I press ALT or the TAB key, the button with focus is surrounded
    >> > with a
    >> > dotted line. Is there a way to turn this off?
    >> >
    >> > It just doesn't look good for non-rectangular buttons.
    >> >




      My System SpecsSystem Spec

  4. #4


    Gary F Guest

    Re: Can the dotted line around a button be turned off?

    I was not able to set the value to "{x:null}", but I was able to override it
    with my own style. This was a big help. Thanks.



    "Dennis Cheng [MSFT]" wrote:

    > See my post on
    > http://forums.microsoft.com/MSDN/Sho...92232&SiteID=1
    >
    >
    > "Gary F" <GaryF@discussions.microsoft.com> wrote in message
    > news:C1829471-F7D7-4AA7-A7C9-7A31AC14CF15@microsoft.com...
    > >I wish it was that simple. Unfortunately, when I set the Focusable
    > >property
    > > to "false", the button will no longer receive focus and IsFocused is never
    > > set to "true".
    > >
    > > I find it strange that the dotted line is not part of the visual tree.
    > >
    > > Any other ideas?
    > >
    > > "Erik Thomas" wrote:
    > >
    > >> Set the Button property:
    > >>
    > >> Focusable="False"
    > >>
    > >> Erik
    > >>
    > >> "Gary F" wrote:
    > >>
    > >> > "When a button has the keyboard focus, the system typically highlights
    > >> > the
    > >> > text, icon, or bitmap of a button by surrounding it with a dotted
    > >> > line." from
    > >> > Windows SDK.
    > >> >
    > >> > When I press ALT or the TAB key, the button with focus is surrounded
    > >> > with a
    > >> > dotted line. Is there a way to turn this off?
    > >> >
    > >> > It just doesn't look good for non-rectangular buttons.
    > >> >

    >
    >
    >


      My System SpecsSystem Spec

  5. #5


    Dennis Cheng [MSFT] Guest

    Re: Can the dotted line around a button be turned off?

    The null value is case sensitive: "{x:Null}". Let me know if that still
    doesn't work for you...


    "Gary F" <GaryF@discussions.microsoft.com> wrote in message
    news:6DC0505F-1264-4412-B0B8-528A867211F6@microsoft.com...
    >I was not able to set the value to "{x:null}", but I was able to override
    >it
    > with my own style. This was a big help. Thanks.
    >
    >
    >
    > "Dennis Cheng [MSFT]" wrote:
    >
    >> See my post on
    >> http://forums.microsoft.com/MSDN/Sho...92232&SiteID=1
    >>
    >>
    >> "Gary F" <GaryF@discussions.microsoft.com> wrote in message
    >> news:C1829471-F7D7-4AA7-A7C9-7A31AC14CF15@microsoft.com...
    >> >I wish it was that simple. Unfortunately, when I set the Focusable
    >> >property
    >> > to "false", the button will no longer receive focus and IsFocused is
    >> > never
    >> > set to "true".
    >> >
    >> > I find it strange that the dotted line is not part of the visual tree.
    >> >
    >> > Any other ideas?
    >> >
    >> > "Erik Thomas" wrote:
    >> >
    >> >> Set the Button property:
    >> >>
    >> >> Focusable="False"
    >> >>
    >> >> Erik
    >> >>
    >> >> "Gary F" wrote:
    >> >>
    >> >> > "When a button has the keyboard focus, the system typically
    >> >> > highlights
    >> >> > the
    >> >> > text, icon, or bitmap of a button by surrounding it with a dotted
    >> >> > line." from
    >> >> > Windows SDK.
    >> >> >
    >> >> > When I press ALT or the TAB key, the button with focus is surrounded
    >> >> > with a
    >> >> > dotted line. Is there a way to turn this off?
    >> >> >
    >> >> > It just doesn't look good for non-rectangular buttons.
    >> >> >

    >>
    >>
    >>




      My System SpecsSystem Spec

Can the dotted line around a button be turned off? problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
So there's no Messenger Button at the bottom line in Live Mail as before?! Daisy Zhao Live Mail 3 01 Oct 2008
So there's no Messenger Button at the bottom line in Live Mail as before?! Daisy Zhao Live Messenger 2 01 Oct 2008
No Line-In/Microphone Levels or Unmute button dumdum Vista hardware & devices 3 22 Jul 2008
Can tool bar button text be turned off? Mike Live Mail 4 01 May 2008
Dotted box around icons and anything please help I need to fix thi ColbyScott Vista file management 0 24 Sep 2007