Einzelnen Beitrag anzeigen

Benutzerbild von sx2008
sx2008

Registriert seit: 15. Feb 2008
Ort: Baden-Württemberg
2.332 Beiträge
 
Delphi 2007 Professional
 
#2

Re: DT_TABSTOP in Drawtext setzen

  Alt 20. Jan 2010, 23:58
Zitat:
DT_TABSTOP
Sets tab stops. Bits 8–15, which form the high-order byte of the low-order word, of the uFormat parameter specify the number of characters for each tab. The default number of characters per tab is eight. You cannot use the DT_CALCRECT, DT_EXTERNALLEADING, DT_INTERNAL, DT_NOCLIP, and DT_NOPREFIX values with the DT_TABSTOP value.
Delphi-Quellcode:
var
  uFormat : DWORD;
  Tabweite : integer;
begin
  Tabweite := 3;
  uFormat := DT_TABSTOP or DT_LEFT; // linksbündig mit Tabs
  uFormat := uFormat or (Tabweite shl 8);
  DrawText(..., uFormat);
fork me on Github
  Mit Zitat antworten Zitat