Solved

Using MDI Forms

Posted on 1997-11-22
4
144 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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 shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 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