0
I have a component inherited from a Tedit. I already have an override of the CreateParams
and by default it has the following parameters:
Params.Style := Params.Style or WS_CLIPCHILDREN or ES_MULTILINE or ES_AUTOHSCROLL;
But sometimes, I would like to change these parameters by removing the ES_MULTILINE
.
Specifically, in the Enter of the component, I would like to add the ES_MULTILINE
, and at Exit I’d like to remove it.
Is it possible? If yes, how to do?
You cannot use the Focused or Mouseinclient control property to do an if there?
– Tiago Rodrigues
But how to set these parameters? This is my question. It has how to do some command like
SetParams
??? Or how to call theCreateParams
??? I know it’s possible to callCreateParams
by commandRecreateWnd
, but in doing so Enter control, focus is not the same. - @Tiagorodrigues– Andrey