Working with hits and IDEEngine

Hello


is there a way to set ShowHints default to true?

I can do it at running time setting ShowComponentHint from getting the FormDesigner from IDEEngine but using constructor is dificult

  TISMIDEFormDesignComponent = class(TIDEFormDesignControl)
  public
    constructor Create(AOwner: TComponent); override;
  end;

TIDEFormDesignControl hides  FEngine as private and Designer is hard created at TIDEFormDesignControl constructor this way

FDesigner := TIDEFormDesigner.Create(nil);

I dont know how to inject my onw TIDEFormDesigner. It could be useful to have function with  a TIDEFormDesigner class result and replace

FDesigner := TIDEFormDesigner.Create(nil);
by
FDesigner := GetIDEFormDesignerClass;

so we can use our TIDEFormDesigner descend with ShowComponentHint := true at class constructor.

Maybe It would be other way but i didnt find it

All the best
ilde


If you have an engine associated with the form designer, you can access its internal designer by TIDEEngine.Designer property.


TIDEEngine.Designer is nil at TIDEEngine creation so that is why I have to wait and detect when get into design mode to get the TIDEEngine.Designer and set ShowHint to true.... a constructor Injection would be great to have Inversion of Control and inject our own inherited designer.

All the best
ilde