Solved

Using MDI Forms

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

22 Experts available now in Live!

Get 1:1 Help Now