sirro
asked on
Making free focus form area
Hi all,
Is it posible to make free focus form area just like what windows done with it's On- Screen keyboard
(start->program->accessori es->access ibility->O n Screen keyboard)?
I need to make an application which will not change the current windows application focus if I click my own client area form application.
Is there someone who could help me.. .
Is it posible to make free focus form area just like what windows done with it's On- Screen keyboard
(start->program->accessori
I need to make an application which will not change the current windows application focus if I click my own client area form application.
Is there someone who could help me.. .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If i have understood correctly what u mean, u have to override the CreateParams procedure of your form. and add WS_EX_NOACTIVATE to ExStyle.
Like this:
type
TForm1 = class(TForm)
protected
procedure CreateParams(var Params: TCreateParams); override;
end;
implementation
Procedure TForm1.CreateParams(var Params: TCreateParams);
Begin
Inherited;
Params.ExStyle := Params.ExStyle + WS_EX_NOACTIVATE;
End;
Hope this helps.
Like this:
type
TForm1 = class(TForm)
protected
procedure CreateParams(var Params: TCreateParams); override;
end;
implementation
Procedure TForm1.CreateParams(var Params: TCreateParams);
Begin
Inherited;
Params.ExStyle := Params.ExStyle + WS_EX_NOACTIVATE;
End;
Hope this helps.
woops, already answered :)
ASKER
Binggo, that's what I'm looking for
Thanks
Sirro
Thanks
Sirro
http://oldlook.experts-exchange.com/questions/20468242/deny-getting-the-focus-when-clicked-on-the-form.html