WinBatch® Technical Support Forum

Archived Boards => WinBatch Dynamic Dialogs => Topic started by: trenttorkelson on October 14, 2013, 12:53:42 PM

Title: Tab Focused button - how to remove border "decoration"
Post by: trenttorkelson on October 14, 2013, 12:53:42 PM
All, any simple way to remove the solid "border" around the focused button in a dialog? I'm ok with the dotted rectangle, but the solid border seems excessive to me (attached image)

Thanks,
-Trent
Title: Re: Tab Focused button - how to remove border "decoration"
Post by: Deana on October 15, 2013, 07:51:58 AM
Trent,

As far as I am aware, the WIL dialogs just use a windows default setting. Unfortunately, there doesn't seem to be any built in way to modify that behavior using the control style functions.
Title: Re: Tab Focused button - how to remove border "decoration"
Post by: Deana on October 15, 2013, 08:10:00 AM
Just a thought. Take a look at the SysParamInfo function:  8206: GetFocusBorderWidth, 8207: SetFocusBorderWidth, 8208 GetFocusBorderHeight and 8209 GetFocusBorderWidth. Note this is a system wide setting.



Title: Re: Tab Focused button - how to remove border "decoration"
Post by: td on October 15, 2013, 08:35:41 AM
Quote from: trenttorkelson on October 14, 2013, 12:53:42 PM
All, any simple way to remove the solid "border" around the focused button in a dialog? I'm ok with the dotted rectangle, but the solid border seems excessive to me (attached image)

Thanks,
-Trent

The border you are referring to is the default button border.  By default the OS places the border around a dialog's default button and MSFT's dialog design specifications recommend it.  If you look carefully, you will notice that there is always a button that has the border even when no button has the focus.  This button that has the border when no button has the focus is the dialog's default default button.
Title: Re: Tab Focused button - how to remove border "decoration"
Post by: trenttorkelson on October 15, 2013, 03:25:21 PM
Ok, well its perfectly understandable that the winbatch managed functions can only do so much. I'll look into the sysparaminfo functionality. If anyone does have anything, perhaps that I could add to my extender, that would possibly remove the border, let me know. I'll be sure to post any findings if this can be done either way.