|
@@ -30,6 +30,7 @@ type
|
|
{ Private declarations }
|
|
{ Private declarations }
|
|
Filename: string;
|
|
Filename: string;
|
|
function GetSanitizedPath: String;
|
|
function GetSanitizedPath: String;
|
|
|
|
+ procedure CMShowingChanged(var Message: TMessage); message CM_SHOWINGCHANGED;
|
|
protected
|
|
protected
|
|
procedure CreateParams(var Params: TCreateParams); override;
|
|
procedure CreateParams(var Params: TCreateParams); override;
|
|
public
|
|
public
|
|
@@ -50,8 +51,7 @@ uses
|
|
function SelectDisk(const DiskNumber: Integer; const AFilename: String;
|
|
function SelectDisk(const DiskNumber: Integer; const AFilename: String;
|
|
var Path: String): Boolean;
|
|
var Path: String): Boolean;
|
|
begin
|
|
begin
|
|
- Application.Restore; { see comments in AppMessageBox }
|
|
|
|
- Application.BringToFront; { usually just makes taskbar button blink }
|
|
|
|
|
|
+ Application.Restore; { see comments in AppMessageBox }
|
|
|
|
|
|
with TNewDiskForm.Create(Application) do
|
|
with TNewDiskForm.Create(Application) do
|
|
try
|
|
try
|
|
@@ -97,7 +97,15 @@ begin
|
|
{ Make sure the form gets a taskbar button if WizardForm doesn't exist yet
|
|
{ Make sure the form gets a taskbar button if WizardForm doesn't exist yet
|
|
or if it isn't visible because it's a very silent install }
|
|
or if it isn't visible because it's a very silent install }
|
|
if (WizardForm = nil) or not WizardForm.Visible then
|
|
if (WizardForm = nil) or not WizardForm.Visible then
|
|
- Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW;
|
|
|
|
|
|
+ Params.WndParent := 0;
|
|
|
|
+end;
|
|
|
|
+
|
|
|
|
+procedure TNewDiskForm.CMShowingChanged(var Message: TMessage);
|
|
|
|
+begin
|
|
|
|
+ inherited;
|
|
|
|
+ { This usually just makes the taskbar button flash }
|
|
|
|
+ if Showing then
|
|
|
|
+ SetForegroundWindow(Handle);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TNewDiskForm.GetSanitizedPath: String;
|
|
function TNewDiskForm.GetSanitizedPath: String;
|