Einzelnen Beitrag anzeigen

shmia

Registriert seit: 2. Mär 2004
5.508 Beiträge
 
Delphi 5 Professional
 
#3

Re: RadioGroup Item über 2 Zeilen

  Alt 1. Okt 2004, 10:18
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;
Andreas
  Mit Zitat antworten Zitat