Link to home
Start Free TrialLog in
Avatar of sirro
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->accessories->accessibility->On 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.. .
Avatar of DragonSlayer
DragonSlayer
Flag of Malaysia image

ASKER CERTIFIED SOLUTION
Avatar of DragonSlayer
DragonSlayer
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Chroma
Chroma

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.
woops, already answered :)
Avatar of sirro

ASKER

Binggo,  that's what I'm looking for

Thanks
Sirro