Recent

Author Topic: bsSizeToolWin & bsToolWindow  (Read 7335 times)

anna

  • Sr. Member
  • ****
  • Posts: 426
bsSizeToolWin & bsToolWindow
« on: August 11, 2010, 10:37:22 am »
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
« Last Edit: August 11, 2010, 11:30:29 am by anna »
WinXP SP3 Pro Russian 32-bit (5.1.2600)

anna

  • Sr. Member
  • ****
  • Posts: 426
Re: bsSizeToolWin & bsToolWindow
« Reply #1 on: August 11, 2010, 11:51:48 am »
It's seems Bill Gates' gotcha.
WinXP SP3 Pro Russian 32-bit (5.1.2600)

BlueIcaro

  • Hero Member
  • *****
  • Posts: 737
    • My github
Re: bsSizeToolWin & bsToolWindow
« Reply #2 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

anna

  • Sr. Member
  • ****
  • Posts: 426
Re: bsSizeToolWin & bsToolWindow
« Reply #3 on: August 15, 2010, 02:02:37 pm »
In 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;
« Last Edit: August 15, 2010, 02:20:44 pm by anna »
WinXP SP3 Pro Russian 32-bit (5.1.2600)

 

TinyPortal © 2005-2018