Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


How can I show many windows in one background?

Posted on 1998-06-04
Medium Priority
Last Modified: 2010-04-06
  I come form China.I get something trouble in Delphi 1 :-!
In my application,the main window is no title and show a bitmap in it,some other small bitmap on it to get mouse message to show some windows. The trouble is: if I use showmodal,it will be only one windows on background.if show,when mouse click the background,the showed windows will be under the backgroud.
How can I show many window in the backgroud?
Question by:jianl
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

Expert Comment

ID: 1350158
I am not sure exactly what you are trying to do here, but try to set the FormStyle property of the new windows to fsStayOnTop. This should prevent them from disappearing when you click on the background (parent form).


Expert Comment

ID: 1350159
   Thanks! but I want show more then one windows.
   I've try to use MDI forms, but in MDI Main form
the bitmap will be not visibled.


Author Comment

ID: 1350160
If you want to use multiple form of the same type, but don't want to use MDI, you will have to create the forms at runtime.

Remove the child form from the Project|Options|Autocreate forms list. Then, each time you want a new form to appear:

procedure MyApp.OnBitmapClick;
  with MyForm1.Create(self) do begin

    //Set your parameters here
    FormStyle := fsStayonTop;


Each time you click on your bitmap, you will dynamically create a new form. This should allow you to have multiple forms without using the MDI. However, you need to make sure that you destroy all the forms when you exit your application. Otherwise you will waste memory.

Accepted Solution

Marcius earned 400 total points
ID: 1350161
Thanks you a lot!
Every window must be fsStayOntop.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : All lightning effects with instructions : http://www.mediaf…
Suggested Courses

715 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