Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi LMD-Tools ... TLMDSpeedButton ... Caption mit ELLIPSIS (https://www.delphipraxis.net/121509-lmd-tools-tlmdspeedbutton-caption-mit-ellipsis.html)

erich.wanker 29. Sep 2008 13:21


LMD-Tools ... TLMDSpeedButton ... Caption mit ELLIPSIS
 
Hallo Forum,

hab jetzt schon einige zeit mit meinen LMDSpeedButtons rumexperimentiert, find aber keine Lösung:

Ich will die Caption eines TLMDSpeedbuttons, wenn sie länger ist,per ELLIPSIS kürzen..

(P.S.: LmdSpeedbutton.canvas gibt´s nicht !)

Vielen Dank für die Hilfe

Erich Wanker

---------------------------------------------------------------------------------------------------
in Z.B.: meinem DBGrid find ich ohne probleme das Canvas und setz die Beschriftung dementsprechend..
DrawTextEx(dboben.Canvas.Handle,PChar(beschriftung _oben_Grid_Verknuepft_mit) , -1,
the_rect, DT_left + DT_VCENTER + DT_SINGLELINE + DT_END_ELLIPSIS,
@DTParams);

erich.wanker 1. Okt 2008 12:53

Re: LMD-Tools ... TLMDSpeedButton ... Caption mit ELLIPSIS
 
Hat sich erledigt ..

ich mach´s jetzt anders...

Ich setz eine Paintbox auf die gleiche größe wie den LMDSpeedButton.
Die Caption vom LMDSpeedbutton setz ich dann mit der Function von:
Function...

Viel Spaß beim coden ...

Erich Wanker


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:35 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz