We have application (written in delphi7), this app use modal forms. After click on button "minimize" app shrink down to taskbar, but after this unable to restore this application from taskbar. Only from taskmanager we may "switch to.." this application.
this little example in Delphi.
1st - how to call modal form -
Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
Form2.ShowModal;
end;
2nd - how to process minimize in modal form -
Code:
type
TForm2 = class(TForm)
private
procedure WMSysCommand(var message: TWMSysCommand); message WM_SYSCOMMAND;
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
procedure TForm2.WMSysCommand(var message: TWMSysCommand);
begin
if message.CmdType = SC_MINIMIZE then
Application.Minimize
else
inherited;
end;
All code from examples, all work in pure environment (in XP, in publicated desktop), but don't work only in published application.
We check this in last versions 2X (416, 419, 421, 458).
Please, help. Or say how to modify source code or say how to tune 2x published application. Second way would be better.