Forum > LCL
bsSizeToolWin & bsToolWindow
(1/1)
anna:
I have 2-form application. For Form2's Create method I've written next code:
--- Code: ---procedure TForm2.FormCreate(Sender: TObject);
begin
ParentWindow:=GetDesktopWindow;
end;
--- End code ---
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:
It's seems Bill Gates' gotcha.
BlueIcaro:
In my Lazarus I don't have ParentWindow property. I use Lazarus 0.9.28.3 Beta Svn 26768
/BlueIcaro
anna:
--- Quote from: BlueIcaro on August 11, 2010, 04:52:41 pm ---In my Lazarus I don't have ParentWindow property. I use Lazarus 0.9.28.3 Beta Svn 26768
/BlueIcaro
--- End quote ---
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;
Navigation
[0] Message Index