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 

How to make a form look like win IME window?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
molecularmotor@yahoo.com.
Guest





PostPosted: Tue Sep 06, 2005 6:11 am    Post subject: How to make a form look like win IME window? Reply with quote



I am writting something like an IME, which captures and responds to the
key events of a 'Main' form. The problem is that the 'IME' form will be
focused if it is clicked. So I bring the main window to the top when
the IME form is activated:

procedure tIMEform.FormActivate(Sender: TObject);
begin
SetWindowPos(mainform.Handle, 0, 0, 0, 0, 0,
SWP_NOOWNERZORDER or SWP_NOMOVE or SWP_NOSIZE);
end;

The new problem is, all the controls in the IME form now cannot receive
the mouse events......

Does anyone have any idea to solve this?

Back to top
Molecular Motor
Guest





PostPosted: Tue Sep 06, 2005 11:50 pm    Post subject: Re: How to make a form look like win IME window? Reply with quote



Solved. Just add the follwing lines:

procedure tIMEform.WMMouseActivate(var msg: tmessage);
begin
msg.result := MA_NOACTIVATE;
end;

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc 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.