Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is there the way of removing focus border?
Is there the way of removing focus border? [message #454090] Sat, 16 April 2005 02:44 Go to next message
mark is currently offline markFriend
Messages: 10
Registered: July 2009
Junior Member
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.
Re: Is there the way of removing focus border? [message #454096 is a reply to message #454090] Sun, 17 April 2005 06:02 Go to previous message
Emil Crumhorn is currently offline Emil CrumhornFriend
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.
Previous Topic:Setting variable column width in Tree
Next Topic:Refreshing View
Goto Forum:
  


Current Time: Thu Apr 25 21:21:16 GMT 2024

Powered by FUDForum. Page generated in 0.02296 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top