Re: [WIN]Removing the Focus Indicator
Hi Travis,
I've got no joy for you here, I feel.
> In some code that I'm working on, I have a titleless window with a dialog
> frame, within which there are six TogglePicture controls. Each button is
16
> x 16. The problem is that when the program is first started, or whenever
> one of the buttons is pushed, the "dotted outline" appears ... to show
that
> the button has focus. I'd rather that this did not happen, because the
> buttons are just small enough that it messes up the image in the button,
and
> just plain "don't look good."
>
> So, is there any way to keep this outline from appearing? On program
start
> up, I've tried to take the focus off the buttons using setFocus(), but
that
> did not help. Also, I've used removeStyle() to remove the WS_TABSTOP
style
> from the buttons. Again, no good.
This dotted line is drawn by Windows when a button has focus. TABSTOP has
nothing to do with it.
> This isn't a show stopper, but I'm a dang perfectionists, and you know how
> anal we get about these things. If anyone's about a idea about this, give
> me a holler!
If you can't make the buttons bigger, then consider using a FlatToolBar
control. I think this might do the trick for you. I haven't tried it myself
yet.
I remember having this problem in a VB program once. I had to make the
buttons 21 x 21 from memory.
------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."
|
Not Categorized, Please Help
|
|