Solved

MDIchild form with no caption

Posted on 2002-03-08
5
350 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
ID: 6852341
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
ID: 6853201
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
ID: 6855676
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
ID: 6859082
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
ID: 6869314
Thanks Ross.

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

Dirk.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Machine not responding during CopyFile() 3 88
Path  to current project in Delphi. 2 71
Delphi 2 47
How to define IfThen functions in one common unit? 4 44
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…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 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

19 Experts available now in Live!

Get 1:1 Help Now