Solved

MDIchild form with no caption

Posted on 2002-03-08
5
348 Views
Last Modified: 2010-04-05
Is it possible to have/create a MDIchild form with no caption?  When you leave the caption property of the MDIchild form empty there still will be two [] in the main form (MDIform) visible after the mainform caption.

Is it possible to avoid this?

Dirk.

PS sorry for my poor English.
0
Comment
Question by:ka1a
5 Comments
 
LVL 9

Expert Comment

by:ginsonic
Comment Utility
Read this tip:

'How to remove the title bar of a MDI child form'

http://www.lmc-mediaagentur.de/dpool/tips01/0011.htm
0
 

Author Comment

by:ka1a
Comment Utility
GinSonic,

Thanks for your reaction.  The solution you proposed does remove the titlebar of the MDIform.  But when the MDIform.windowstate:=wsMaximized, then the caption of the MDIform will be visible after the caption of the Mainform.  When you leave the caption property of the MDIchild form empty, there still will be - [ ] after the caption of the mainform.  Is there a solution to avoid that?

Dirk.

PS sorry for my poor English.
0
 
LVL 17

Expert Comment

by:Wim ten Brink
Comment Utility
I don't have a solution but I wonder why you want this functionality with an MDI form. Isn't there an easier way to get what you want?
0
 
LVL 1

Accepted Solution

by:
bozo7 earned 50 total points
Comment Utility
Instead of using an MDI form.
When you create the form that is the MDI child. Create it as a normal form but in the on create event set the parent to the form that was MDI.

Here is the code I have in the Oncreate of Form2

form2.parent := form1;
show;

I have the borderstyle on form2 set to bsNone.
Does exactly what you want.
I use this extensivly in another project.

Ross
0
 

Author Comment

by:ka1a
Comment Utility
Thanks Ross.

I didn't know that this was possible.  Thanks again.

Dirk.

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

6 Experts available now in Live!

Get 1:1 Help Now