Solved

How can I show many windows in one background?

Posted on 1998-06-04
4
124 Views
Last Modified: 2010-04-06
Hi:
  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?
0
Comment
Question by:jianl
  • 2
4 Comments
 
LVL 1

Expert Comment

by:Marcius
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).

0
 
LVL 4

Expert Comment

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

0
 

Author Comment

by:jianl
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;
begin
  with MyForm1.Create(self) do begin

    //Set your parameters here
    FormStyle := fsStayonTop;
    Show;

  end;
end;

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.
0
 
LVL 1

Accepted Solution

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now