This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Default focus on Buttons
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Feb 25, 2008
06:39 AM
Default focus on Buttons
Hi,
I would like to know how to set default focus on buttons. I have created custom dialogs in a install script project.it seems to focus the first time dialog is loaded and later it does not focus.Any help appreciated....
I am using Installshield professional 2008 edition.Is there a issue with Windows Vista as i feel its proper on WIndows XP...
Has anybody come across such an issue...
I would like to know how to set default focus on buttons. I have created custom dialogs in a install script project.it seems to focus the first time dialog is loaded and later it does not focus.Any help appreciated....
I am using Installshield professional 2008 edition.Is there a issue with Windows Vista as i feel its proper on WIndows XP...
Has anybody come across such an issue...
(4) Replies
‎Feb 27, 2008
10:52 AM
heko,
I have not come up on this issue in Vista or any other OS that I install on. You could try the following.
_WinSubFocusControl( hWnd, nBtnId );
This function sets the input focus to the given child window. All subsequent keyboard input is directed to this child window. The child window, if any, that previously had the input focus loses it.
or
_WinSubFocusWindow( hWnd );
This function sets the input focus to the given window. All subsequent keyboard input is directed to this window. The window, if any, that previously had the input focus loses it.
I have used the _WinSubFocusWindow(); function in my custom dialogs in the past with good effect. I think the _WinSubFocusControl(); may be the one you need to use.
To get to these calls;
#include winsub.h
Hope it helps,
ME
I have not come up on this issue in Vista or any other OS that I install on. You could try the following.
_WinSubFocusControl( hWnd, nBtnId );
This function sets the input focus to the given child window. All subsequent keyboard input is directed to this child window. The child window, if any, that previously had the input focus loses it.
or
_WinSubFocusWindow( hWnd );
This function sets the input focus to the given window. All subsequent keyboard input is directed to this window. The window, if any, that previously had the input focus loses it.
I have used the _WinSubFocusWindow(); function in my custom dialogs in the past with good effect. I think the _WinSubFocusControl(); may be the one you need to use.
To get to these calls;
#include winsub.h
Hope it helps,
ME
‎Feb 28, 2008
05:31 AM
Hi mark,
thanks for the information i will definitely try and let u know
thanks for the information i will definitely try and let u know
MarkEarle wrote:
heko,
I have not come up on this issue in Vista or any other OS that I install on. You could try the following.
_WinSubFocusControl( hWnd, nBtnId );
This function sets the input focus to the given child window. All subsequent keyboard input is directed to this child window. The child window, if any, that previously had the input focus loses it.
or
_WinSubFocusWindow( hWnd );
This function sets the input focus to the given window. All subsequent keyboard input is directed to this window. The window, if any, that previously had the input focus loses it.
I have used the _WinSubFocusWindow(); function in my custom dialogs in the past with good effect. I think the _WinSubFocusControl(); may be the one you need to use.
To get to these calls;
#include winsub.h
Hope it helps,
ME
‎Jun 18, 2009
05:01 AM
Thanks,
_WinSubFocusWindow( dlgItem );
this really works... 🙂
_WinSubFocusWindow( dlgItem );
this really works... 🙂