Thema: Delphi Textzeilen umbrechen

Einzelnen Beitrag anzeigen

Daniel G
(Gast)

n/a Beiträge
 
#2

Re: Textzeilen umbrechen

  Alt 23. Jul 2005, 10:56
Mal 'ne blöde Frage:

Als Basis nutzt du aber schon ein "EDIT" im Sinne der Windows API, oder?

Also im Prinzip sowas:

Zitat:
Handling Wordwrap and Line Breaks
An application can use Wordwrap functions with multiline edit controls to locate the word or word fragment that should be wrapped to the next line. Using the default Wordwrap function provided by the system, lines always end at the spaces between words. An application can specify its own Wordwrap function by supplying an EditWordBreakProc Wordwrap function and sending the edit control an EM_SETWORDBREAKPROC message. An application can retrieve the address of the current Wordwrap function by sending the control an EM_GETWORDBREAKPROC message.

An application may direct a multiline edit control to add or remove a soft line break character (two carriage returns and a line feed) automatically at the end of wrapped-text lines. An application can turn this feature on or off by sending the edit control an EM_FMTLINES message. This message applies only to multiline edit controls and does not affect a line that ends with a hard line break (one carriage return and a line feed entered by the user). Also in multiline edit controls, an application can specify the ES_WANTRETURN style to request that the system insert a carriage return when the user presses the ENTER key in the edit control.
//HDC? Hmm, also wohl doch kein Edit im Sinne der Win-api... Schade...
  Mit Zitat antworten Zitat