![]() |
Button-Caption linksbündig (BS_ALIGN_CENTRELEFT), ohne Speedbutton
Hallo #,
zum Setrzen der Button-Überschrift linksbündig brauche ich die Konstante für BS_ALIGN_CENTRELEFT). wo finde ich die ? Danke Heiko |
AW: Button-Caption linksbündig (BS_ALIGN_CENTRELEFT), ohne Speedbutton
Google?
|
AW: Button-Caption linksbündig (BS_ALIGN_CENTRELEFT), ohne Speedbutton
Zitat:
@Heiko: Ich habe dieses Visual Basic Beispiel gefunden :
Code:
Const BS_ALIGN_CENTRELEFT As Long = &H100
|
AW: Button-Caption linksbündig (BS_ALIGN_CENTRELEFT), ohne Speedbutton
Hach, wär das nicht goil?
Delphi-Quellcode:
Uses google;
|
AW: Button-Caption linksbündig (BS_ALIGN_CENTRELEFT), ohne Speedbutton
Hallo,
OK, das VB-Bsp hatte ich ja auch gefunden, aber ich wollte eigentlich den Delphi-Code ... ;) Heiko |
AW: Button-Caption linksbündig (BS_ALIGN_CENTRELEFT), ohne Speedbutton
Zitat:
|
AW: Button-Caption linksbündig (BS_ALIGN_CENTRELEFT), ohne Speedbutton
Ich versteh das Problem nicht ganz, da wo die anderen ButtonStyles definiert sind windows.pas fehlt es, wenn Du es nur in der Komponente brauchst deklariere es einfach.
Delphi-Quellcode:
type TButton=Class(stdCtrls.TButton) procedure CreateParams(var Params: TCreateParams);override; End; //..... procedure TButton.CreateParams(var Params: TCreateParams); const BS_ALIGN_CENTRELEFT=$100; begin inherited; Params.Style := Params.Style or BS_ALIGN_CENTRELEFT; end; |
AW: Button-Caption linksbündig (BS_ALIGN_CENTRELEFT), ohne Speedbutton
Hallo,
dieses VB->Delphi hatte ich gesucht. Danke ! Heiko |
AW: Button-Caption linksbündig (BS_ALIGN_CENTRELEFT), ohne Speedbutton
Zitat:
aber der offizielle Fundort wäre das MSDN. (oder der Windows PSDK runterladen) MSDN = Deklaration der WinAPI ![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:33 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz