?
Solved

ShortCuts in Delphi (many forms - Application.OnMessage)

Posted on 2003-03-11
4
Medium Priority
?
273 Views
Last Modified: 2008-02-01
I don't know how to manage shortcuts on an application when i have many forms (modal, docked ...).
  * Use of Form.onKey... is not a sollution 'cause i have many controls on them (the forms).
  * If I use Application.OnMessage is Oke, but if i work with modal childs forms, i have to change everytime the Application.OnMessage function and is not the sollution that i want.
Can you help me??? do u know a solution???
0
Comment
Question by:danieldas
[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
4 Comments
 
LVL 6

Accepted Solution

by:
swift99 earned 300 total points
ID: 8116580
Use a controller layer - a non-visual component whose purpose is to receive commands and dispatch them to the coorect destination.

The controller layer is responsible for creating and destroying forms, and for communicating with the data model behind all of the work.  Only it knows about any of the forms.  The forms are not aware of each other at all, but are aware of the controller to the extent that they pass events that they do not handle to the controller layer and can invoke its public methods and use its public properties.

This is a common design pattern apparent in many commercial apps.

A Datamodule can make a good basis for constructing a controller layer.
0
 

Expert Comment

by:CleanupPing
ID: 9316844
danieldas:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 10095819
Hi!
No comment has been added lately and this question is therefore classified abandoned.

If asker wishes to close the question, then refer to
http://www.experts-exchange.com/help/closing.jsp

Otherwise, I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: swift99

Please leave any comments here within the next seven days. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

...Snehanshu
EE Cleanup Volunteer
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

765 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