|
Re: Is there the way of removing focus border? [message #454096 is a reply to message #454090] |
Sun, 17 April 2005 06:02 |
Emil Crumhorn Messages: 169 Registered: July 2009 |
Senior Member |
|
|
I believe this is how Windows does things. I'm sure there's some way to
override it using Win32 API (such as ignoring when focus is given to a
control), but it probably wouldn't be cross platform, as each system deals
with it their own way. I know that OS X highlights text fields and such in
system colors to show where the focus is, as well as using "pulsing" button
animations on default buttons.
If you want more info on the Windows dotted focus, read here:
http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/shellcc/platform/commctls/buttons/buttonstates.asp
Excerpt:
"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. In
addition, a push button has a heavy dark border when it has the focus. The
system automatically changes the highlight for an automatic button, but the
application must change the highlight for a non-automatic button by sending
messages."
Emil
"mark" <mark@home.net> wrote in message
news:d3pu71$lup$1@news.eclipse.org...
>
> In SWT, the button always draws the focus border
> (the dotted lines) when it has the focus. I don't
> want the border.
>
> Is there the way of removing focus border of button?
> Thank in advance.
|
|
|
Powered by
FUDForum. Page generated in 0.02296 seconds