BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TDesignWindow WndProc doesn't work

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical
View previous topic :: View next topic  
Author Message
Frenk
Guest





PostPosted: Sat Jul 30, 2005 4:30 pm    Post subject: TDesignWindow WndProc doesn't work Reply with 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
Heiko Behrens
Guest





PostPosted: Sun Jul 31, 2005 9:03 am    Post subject: Re: TDesignWindow WndProc doesn't work Reply with quote



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





PostPosted: Sun Jul 31, 2005 9:15 am    Post subject: Re: TDesignWindow WndProc doesn't work Reply with quote



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





PostPosted: Sun Jul 31, 2005 10:20 am    Post subject: Re: TDesignWindow WndProc doesn't work Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.