![]() |
RadioGroup Item über 2 Zeilen
Hallo,
habe eine RadioGroup!
Delphi-Quellcode:
leider wird der text nicht über 2 Zeilen angezeigt! Wie kann ich das machen?
RadioGroup.Items.Add('Text');
RadioGroup.Items.Add('sehr langer Text soll über mehrere Zeilen angezeigt werden'); Danke |
Re: RadioGroup Item über 2 Zeilen
Zitat:
hart aber wohl war: Es geht nicht. |
Re: RadioGroup Item über 2 Zeilen
Es geht, aber die Items müssen genügend Abstand haben:
Delphi-Quellcode:
procedure MultilineControl(theControl: TWinControl);
var dwStyle: Longint; begin dwStyle := GetWindowLong(theControl.handle, GWL_STYLE) or BS_MULTILINE; SetWindowLong(theControl.Handle, GWL_STYLE, dwStyle); end; var i : Integer; begin for i := 0 to RadioGroup1.ControlCount-1 do MultilineControl(RadioGroup1.Controls[i] as TWinControl); RadioGroup1.Refresh; |
Re: RadioGroup Item über 2 Zeilen
Funktioniert!
Keine Ahnung was ich da abgeschrieben habe, aber ist schon ziemlich cool! :gruebel: DANKE!!!!! :dance: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:18 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