Ertan
--
Regards
Ralph (TeamB)
--
Ertan Fidan wrote in message <7900cr$9e...@forums.borland.com>...
Ertan
Ralph Friedman (TeamB) <ralphfriedman@spamno_email.com> wrote in message
news:79274a$bn...@forums.borland.com...
the MDI client form is designed to hold MDI children and, AFAIK, by design
(Windows) does not accept keyboard input. Your 1st message was unclear as to
which kind of MDI form you were referring to and I assumed that you were
referring to your MDI children. If you need it at the "form" level, handle
Application.OnMessage and, in that handler, handle one of the Windows keyboard
messages.
--
Regards
Ralph (TeamB)
--
Ertan Fidan wrote in message <792imi$cc...@forums.borland.com>...
Thanks in Advance,
Ertan
Ralph Friedman (TeamB) <ralphfriedman@spamno_email.com> wrote in message
news:793mfv$d2...@forums.borland.com...
take a look at handling Application.OnIdle;
--
Regards
Ralph (TeamB)
--
Ertan Fidan wrote in message <797rcq$gv...@forums.borland.com>...
Ertan
Ralph Friedman (TeamB) <ralphfriedman@spamno_email.com> wrote in message
news:7992aq$i4...@forums.borland.com...
then I repeat my original suggestion. Handle Application.OnMessage and look
for WM_KEYDOWN, WM_KEYUP or WM_CHAR. Whichever is appropriate to your
situation.
--
Regards
Ralph (TeamB)
--
Ertan Fidan wrote in message <79ai9m$j8...@forums.borland.com>...
Create a descendent of TForm with KeyPreview True.
In the KeyDown event, do something like this:
TMyMainForm(Application.MainForm).KeyHasBeenPressed.
Then create your MDI Children as descendents of this form.
Ertan Fidan wrote:
> Thank you for the reply but I think it won't solve my problem. I can learn
> when application became idle but I also need to get when user presses a key.
>
> Ertan
>
> Ralph Friedman (TeamB) <ralphfriedman@spamno_email.com> wrote in message
> news:7992aq$i4...@forums.borland.com...
> >Ertan,
> >
> >take a look at handling Application.OnIdle;
> >--
> >Regards
> >Ralph (TeamB)
> >--
> >Ertan Fidan wrote in message <797rcq$gv...@forums.borland.com>...
> >|What I would like to do is to get the idle time of the application. In
> this
> >|way I want to disconnect user from database after a period of time. Can I
> do
> >|this in another way?
> >
--
Ken Bailey
Falmouth Software Works Ltd.
Ertan
Ken Bailey <kbai...@maine.rr.com> wrote in message
news:36B9B299...@maine.rr.com...