Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Can the dotted line around a button be turned off?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 03-29-2006   #1 (permalink)
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
Old 03-29-2006   #2 (permalink)
Erik Thomas
Guest


 

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

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)
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
Old 03-29-2006   #4 (permalink)
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
Old 03-30-2006   #5 (permalink)
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
Old 03-30-2006   #6 (permalink)
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
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
No Line-In/Microphone Levels or Unmute button dumdum Vista hardware & devices 3 07-22-2008 02:09 PM
CD drive is turned off and needs to be turned on misterchuck Vista hardware & devices 2 06-11-2008 01:32 PM
Can tool bar button text be turned off? Mike Live Mail 4 05-01-2008 01:40 PM
Dotted box around icons and anything please help I need to fix thi ColbyScott Vista file management 0 09-24-2007 03:52 PM
FileExplorer TreeView & WinXP like dotted lines Mike via WindowsKB.com Vista General 0 02-27-2007 12:07 PM


Vistax64.com 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 2005-2008

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 47 48 49 50 51