Solved

Using MDI Forms

Posted on 1997-11-22
4
148 Views
Last Modified: 2010-04-04
I am creating a Word Processor like program.
I have added a toolbar in my parent (Frame) Form and a tool button (Save) to save the contents of the child form (Text document). The thing is that how do I link the tool button to the Menu item (Save) of the child form so that clicking on the save button would actually call the menu item Save from the child form and saves the documents

Thanks in advance
Email: wenwei@mbox2.singnet.com.sg
0
Comment
Question by:test031097
[X]
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
4 Comments
 

Author Comment

by:test031097
ID: 1351475
Edited text of question
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1351476
Make them share the same handler.

0
 
LVL 1

Accepted Solution

by:
TheSwine earned 100 total points
ID: 1351477
If I understand it right this should quite simple:

if ActiveForm.FormStle = fsMdiChild then
  with (ActiveForm as TMyMdiEditForm) do
    FormMenu.SaveMenuItem.Click;

p.s. your design is BAD, The save procedure should be in the parent form or in a TDoc object, not in the MDI child which used only to display your doc in graphical way.
0
 

Author Comment

by:test031097
ID: 1351478
Thanks a lot man!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Multiple image collision 13 111
tidtcpserver connection lost handle 2 124
Firemonkey android show image from resource ? 1 73
Microsoft Access 97 and Delphi XE2 9 85
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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