Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Can the dotted line around a button be turned off?

 
 
Old 03-29-2006   #1 (permalink)
Gary F


 
 

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
Old 03-29-2006   #2 (permalink)
Gary F


 
 

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
Old 03-29-2006   #3 (permalink)
Dennis Cheng [MSFT]


 
 

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
Old 03-30-2006   #4 (permalink)
Gary F


 
 

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
Old 03-30-2006   #5 (permalink)
Dennis Cheng [MSFT]


 
 

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
 

Thread Tools


Similar Threads
Thread Forum
So there's no Messenger Button at the bottom line in Live Mail as before?! Live Mail
So there's no Messenger Button at the bottom line in Live Mail as before?! Live Messenger
No Line-In/Microphone Levels or Unmute button Vista hardware & devices
Can tool bar button text be turned off? Live Mail
Dotted box around icons and anything please help I need to fix thi Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46