W32: Form.hide fails with Application.TaskBarBehavior:=tbMultiButton (regression)
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
observed on Windows Vista
In the attached app you can press "button1" to show a 3rd form.
This 3rd form will either close in Form3.OnClick (click on form3 itself) or Form3.Deactivate (click on any of the 2 other forms)
- press button1 => form3 appears
- click any form => form3 is hidden
- press button "multibutton" (taskbar shows "project1" and "form2")
- press button1 => form3 appears
- click any form
Form3 should get hidden, but does not get hidden
Additional information:
This is a regression.
"Application.TaskBarBehavior" does not exist in 0.9.28.2.
But the issue also happens with:
procedure TForm1.Button3Click(Sender: TObject);
begin
form1.ShowInTaskBar:=stDefault;
form2.ShowInTaskBar:=stNever;
form3.ShowInTaskBar:=stNever;
//Application.TaskBarBehavior:=tbSingleButton;
end;
procedure TForm1.Button4Click(Sender: TObject);
begin
form1.ShowInTaskBar:=stAlways;
form2.ShowInTaskBar:=stAlways;
form3.ShowInTaskBar:=stAlways;
// Application.TaskBarBehavior:=tbMultiButton;
end;
This code works in SVN and 0.9.28.2.
It fails to close form3 with svn, but works in 0.9.28.2
Mantis conversion info:
- Mantis ID: 17561
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 27714 (#520d3678)
- Target version: 0.9.30