bsSizeToolWin & bsToolWindow lazarus / 31-LCL ---------------------------------------------------------------------- anna · 2010-08-11 08:37 I have 2-form application. For Form2's Create method I've written next code: Code: [Select]procedure TForm2.FormCreate(Sender: TObject); begin   ParentWindow:=GetDesktopWindow; end;  It don't work if Form2's BorderStyle property set to bsSizeToolWin or bsToolWindow. Why? How to make own 'windowstaskbar button' for bsSizeToolWin? I mean that for my second form I need such button like this: http://img148.imageshack.us/img148/2159/28534987.png and my second form must be toolwindow. How to do that? And I use snapshot: ftp://ftp.hu.freepascal.org/pub/lazarus/snapshots/Lazarus-0.9.29- 27041-fpc-2.4.0-20100809-win32.exe ---------------------------------------------------------------------- anna · 2010-08-11 09:51 It's seems Bill Gates' gotcha. ---------------------------------------------------------------------- BlueIcaro · 2010-08-11 14:52 In my Lazarus I don't have ParentWindow property. I use Lazarus  0.9.28.3 Beta Svn 26768 /BlueIcaro ---------------------------------------------------------------------- anna · 2010-08-15 12:02 Quote from: BlueIcaro on August 11, 2010, 04:52:41 pmIn my Lazarus I don't have ParentWindow property. I use Lazarus  0.9.28.3 Beta Svn 26768 /BlueIcaro ParentWindow appears as from Lazarus-0.9.29 Here is hint for it: http://img641.imageshack.us/img641/2779/23095675.png ******************************************** I have some question. Do you have TForm.ShowInTaskBar property in your Lazarus? I have both ShowInTaskBar and ParentWindow in my Lazarus-0.9.29, but I don't understand difference between: form2.ShowInTaskBar:=stAlways;                      and ParentWindow:=GetDesktopWindow;