Joel
16th March 2005 15:53 UTC
Help!: Need to add a custom dialog like IO and StartMenu
I'm creating a dialog from my plugin and I need to attach it like InstallOptions or StartMenu does it...
My problem is not the display, is that I can't see the buttons "cancel" nor "continue" from nsis parent dialog...
can anyone help me on this?
deguix
17th March 2005 02:04 UTC
"GetWindowRect(hWndParent, &dialog_r);" is pointing to the parent window handle. You have to get the handle of the child window (ID: 1018) first and then use it as the window handle for the GetWindowRect.
Joel
17th March 2005 13:57 UTC
I'll try that :)
Joel
17th March 2005 15:45 UTC
in good road
Ok, I viewed the souce codes from InstallOptions and StartMenu and you right, deguix... I missed the dimensions of the child dialog...
At this moment, my dialog is showed and the NSIS' cancel and next buttons are visible, but they are grayed-out..
Attaching my new code....
Joel
18th March 2005 17:05 UTC
Better, but...
Thanks to Kichik for pointed me to the right path, my only problem now is the <install> buttons doesn't show instfiles page...
Attaching updated code :)
deguix
19th March 2005 05:25 UTC
I think this may be wrong in your plugin:
if (wParam == NOTIFY_BYE_BYE)
{
done++;
PostMessage(hWnd, WM_CLOSE, 0, 0);
}
In this case, the new window (hWnd) will only be removed if the installation is being cancelled. So that means, there must be also a problem when you go back pages. Maybe this will work for you:
done++;
PostMessage(hWnd, WM_CLOSE, 0, 0);
Joel
21st March 2005 14:32 UTC
Thanks again deguix :up: :D
That did the trick...