molecularmotor@yahoo.com. Guest
|
Posted: Tue Sep 06, 2005 6:11 am Post subject: How to make a form look like win IME window? |
|
|
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?
|
|