Thema: Delphi NonVCL - Edit --> Memo

Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#1

NonVCL - Edit --> Memo

  Alt 27. Okt 2007, 14:50
Hi,

Kann ich ein nonVCL Edit zur Laufzeit in ein Memo verwandeln?
Ich versuche es im Moment so.

Delphi-Quellcode:
var wl: Cardinal;
begin
  wl := GetWindowLong(Handle,GWL_STYLE);
  SetWindowLong(Handle,GWL_STYLE,wl or ES_MULTILINE or ES_AUTOVSCROLL);
end;
Es funktioniert aber nicht. Das Edit bleibt ein Edit.

Gruß
Neutral General
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat