How can I make a MDIMainForm like MS. Word?

I used ControlBar and toolBar to make MDiMainForm Menu in order to like MS.Word,but when the MDIChildForm Maximised ,it's Icon and Sysmenu Hided behide toolbar,how can I Show Icon and SysMenu of MdiChildForm on the ToolBar.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hi lly_soft,

just add a tmainmenu-component in your mainform (must not have any menupoints)

this will not show it on the toolbar, but if the child is maximized an empty menuline will inserted between your bar and the mainform-title, which shows the icon including the systemmenu by clicking on it, also the restore, minimize, close buttons of the child are visible and accessable.

try it out


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
men xinCEOCommented:
i agree with kretzschmar.
lly_softAuthor Commented:
I try it ,but when ChildForm Close,it will delay on MainForm.
?? lly_soft,

what does you mean with
>it will delay on MainForm

have you filled the OnClose-event of your child-form with code like

procedure TChildForm1.FormClose(Sender: TObject; var Action: TCloseAction);
  Action := caFree; //destroy self or
//Action := caHide; //hide self

lly_softAuthor Commented:
 I filled the onClose-event of my child-form.
  I means when closing child-form ,it will first normaling then Close,so it's look like dealy sometimes on
mainform,this situation based on no item added in the additional menu.
  Later when adding Space Item in the menu,last situation disappear.
 Thank you for answer my question,do you have other ideas for me?

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.