Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which icons in task bar?

Status
Not open for further replies.

hstijnen

Programmer
Nov 13, 2002
172
NL
Hello,
When I start and run my program there appears one icon in the task bar showing the name of the application.
But now something has changed: there appear an icon for every form I call (as if the same number of programs are running) and now showing the title of the form. I don't want the user change between the forms because they are modal.

What can be happened? How can I set this behaviour?

Thanks

Henk Stijnen
 
Did you set your main form's style as fsMDIForm and the called forms' style as fsMDIChild?

James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
It almost sounds like you created these new forms dynamically and didn't pass in the main window's handle as the parent window. If you create a new window with NULL as the parent (or owner I forget), it seems like I remember something similar happening.

How are you creating the forms? Just using C++ Builder and building the forms at design-time?
 
My forms are all fsNormal and builded designtime. And - except main form and datamodules - created dynamically, like:

void __fastcall Tmain::Button1Click(TObject *Sender)
{
TMyForm1 *frm = new TMyForm1(Application);
frm->ShowModal();
delete frm;
}

So Owner is always Application.
 
In the meantime I've found out that the unwanted behaviour appears when I use a dll wherein vcl forms are used (in the same manner as see previous post).
I had imported the dll via Project | AddtoProject and #included the appropriate .h file. So far all went OK. But on the very moment I call a routine (not using forms) from the dll, the unwanted behaviour appears.

Now I get the dll with LoadLibrary(...) and the routines with GetProcAddress(...). That works OK. But is more coding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top