?
Solved

Displaying the child windows of an applicatin in the taskbar on minimizing

Posted on 2001-06-12
2
Medium Priority
?
168 Views
Last Modified: 2010-04-06
hello experts,

I am developing a chat application where the
messages from each of the online members will
be displayed in the window specific to the
member. On getting a new message to a
particular window I want to display that
particular window in the taskbar with the window state 'wsMinimized'.Since these windows are the
child windows of the application,it can't be
displayed in the task bar as minimized instead
it will appear above the taskbar as minimized.

Can you help me with some source code?..
0
Comment
Question by:mrk_raj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 17

Accepted Solution

by:
geobul earned 600 total points
ID: 6180190
Hi,
Define your child forms this way:

type
  TForm2 = class(TForm)
  private
    { Private declarations }
  public
    { Public declarations }
    procedure CreateParams(var Params:TCreateParams); override;
  end;

var
  Form2: TForm2;

implementation

{$R *.DFM}

procedure TForm2.CreateParams(var Params:TCreateParams);
begin
 inherited CreateParams(Params);
 Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW;
end;


When you are showing that form do:

procedure TForm1.Button1Click(Sender: TObject);
begin
  Form2.WindowState := wsMinimized;
  Form2.Visible := true;
end;

Regards, Geo
0
 
LVL 17

Expert Comment

by:geobul
ID: 6181724
Hi,
Is there something wrong with my proposal to award it using 'B' option? It was fast and complete, I think.

Regards, Geo
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question