mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 21:38:00 +02:00
LCL: Themes.DrawText() added DT_WORDBREAK and DT_END_ELLIPSIS.
git-svn-id: trunk@34028 -
This commit is contained in:
parent
4a2a70dece
commit
534feafb8e
@ -2349,6 +2349,12 @@ begin
|
||||
// set color here, otherwise SystemFont is wrong if the button was disabled before
|
||||
TXTStyle.SystemFont := Canvas.Font.IsDefault;//Match System Default Style
|
||||
|
||||
TXTStyle.Wordbreak := (Flags and DT_WORDBREAK) <> 0;
|
||||
if not TXTStyle.Wordbreak then
|
||||
TXTStyle.EndEllipsis := (Flags and DT_END_ELLIPSIS) <> 0
|
||||
else
|
||||
TXTStyle.EndEllipsis := False;
|
||||
|
||||
OldColor := Canvas.Font.Color;
|
||||
if IsDisabled(Details) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user