| View previous topic :: View next topic |
| Author |
Message |
Frenk Guest
|
Posted: Sat Jul 30, 2005 4:30 pm Post subject: TDesignWindow WndProc doesn't work |
|
|
I implemented custom design form for datamodule descendant. Because I want
to catch keys pressed in IDE (when form is avtive), I implemented both
ComponentContainer (TScrollBox descendant) WndProc (component container is
"alClient" aligned on design form (TDesignWindow descendant)) and
TDesignWindow WndProc-s.
It is strange that mouse clicks, form movement is called, but never get
WM_KeyDown message. ActiveControl returns ComponentContainer (which is OK).
Anybody knows why or does IDE by default "eat" all keyboard input? Does IDe
have any interface to get keys or is there any special way to implement
event handler?
Frenk
|
|
| Back to top |
|
 |
Heiko Behrens Guest
|
Posted: Sun Jul 31, 2005 9:03 am Post subject: Re: TDesignWindow WndProc doesn't work |
|
|
Hi Frenk,
| Quote: | Anybody knows why or does IDE by default "eat" all keyboard input? Does IDe
have any interface to get keys or is there any special way to implement
event handler?
|
concerning your custom designer: you might have more look at
news:borland.public.delphi.opentoolsapi
Regards,
Heiko Behrens
|
|
| Back to top |
|
 |
Dave Nottage [TeamB] Guest
|
Posted: Sun Jul 31, 2005 9:15 am Post subject: Re: TDesignWindow WndProc doesn't work |
|
|
Frenk wrote:
| Quote: | Does IDe have any interface to get keys or is there any special way
to implement event handler?
|
Check out the auto-correction feature of GExperts:
http://www.gexperts.org/devfaq.html
It might give you some clues.
--
Dave Nottage [TeamB]
|
|
| Back to top |
|
 |
Frenk Guest
|
Posted: Sun Jul 31, 2005 10:20 am Post subject: Re: TDesignWindow WndProc doesn't work |
|
|
Problem solved. SetFocus doesn't work, but Windows.SetFocus(Handle) does.
Strange but anway, works.
Frenk
"Frenk" <Frenk3 (AT) volja (DOT) net> wrote
| Quote: | I implemented custom design form for datamodule descendant. Because I want
to catch keys pressed in IDE (when form is avtive), I implemented both
ComponentContainer (TScrollBox descendant) WndProc (component container is
"alClient" aligned on design form (TDesignWindow descendant)) and
TDesignWindow WndProc-s.
It is strange that mouse clicks, form movement is called, but never get
WM_KeyDown message. ActiveControl returns ComponentContainer (which is
OK).
Anybody knows why or does IDE by default "eat" all keyboard input? Does
IDe
have any interface to get keys or is there any special way to implement
event handler?
Frenk
|
|
|
| Back to top |
|
 |
|