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
- :
- Setting Custom Dialog Window Position
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 28, 2008
01:59 PM
Setting Custom Dialog Window Position
It always seems that whenever I have an InstallShield problem, 5 or 6 other people have had the same problem, but no one has posted a solution.
Here's my (professional) problem: I have a install that consists of a handful of custom dialogs. If the user moves one of the dialog boxes, then clicks next, the following dialog will jump back to the initial position.
Is there any way that I can capture the window position, save it, and set each dialog's position based on that? I know that PlaceWindow() won't work with custom dialogs. That leaves MoveWindow(), but I can't get that to work either.
Any suggestions?
Here's my (professional) problem: I have a install that consists of a handful of custom dialogs. If the user moves one of the dialog boxes, then clicks next, the following dialog will jump back to the initial position.
Is there any way that I can capture the window position, save it, and set each dialog's position based on that? I know that PlaceWindow() won't work with custom dialogs. That leaves MoveWindow(), but I can't get that to work either.
Any suggestions?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 29, 2008
10:13 AM
Going once... twice... ?
I found this post about using _WinSubGetWindowRect ( wWinHnd, nOX, nOY, nSX, nSY ); This function is declared in winsub.rul, but it looks like it was depreciated, since my version of winsub.rul doesn't contain anything. I found a version online that had function declarations, but I'm afraid that I'm wasting time now... Anyone? PLEASE?
http://forum.installsite.net/index.php?showtopic=290
I found this post about using _WinSubGetWindowRect ( wWinHnd, nOX, nOY, nSX, nSY ); This function is declared in winsub.rul, but it looks like it was depreciated, since my version of winsub.rul doesn't contain anything. I found a version online that had function declarations, but I'm afraid that I'm wasting time now... Anyone? PLEASE?
http://forum.installsite.net/index.php?showtopic=290
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 29, 2008
12:44 PM
If you call EzDefineDialog to create your custom dialog, that will call the DefineDialog function with the DLG_CENTERED flag passed to the lMsgLevel parameter. If DLG_CENTERED is passed to DefineDialog, when that dialog is initialized, it will be centered on the screen.
You can try calling DefineDialog directly instead of EzDefineDialog and only pass DLG_MSG_STANDARD in the lMsgLevel parameter. This may allow you to call MoveWindow to change the dialog's position.
You can try calling DefineDialog directly instead of EzDefineDialog and only pass DLG_MSG_STANDARD in the lMsgLevel parameter. This may allow you to call MoveWindow to change the dialog's position.