Registriert seit: 9. Feb 2006
Ort: Stolberg (Rhld)
4.144 Beiträge
Delphi 10.3 Rio
|
AW: Pre-Vererbung von TStyleBook?
24. Jan 2015, 16:29
So geht es! Einfach umpatchen...
Delphi-Quellcode:
Uses FMX.Styles;
procedure TMainView.FormCreate(Sender: TObject);
var
StyleObject : TFMXObject;
StyleControl : TControl;
begin
StyleObject := TStyleManager.ActiveStyle(self).FindStyleResource('listboxitembottomdetail');
if Assigned(StyleObject) then
begin
StyleControl := TControl(StyleObject.FindStyleResource('Text'));
StyleControl.Align := TAlignLayout.Bottom;
StyleControl.Margins.Bottom := StyleControl.Margins.Top;
StyleControl.Margins.Top := 0;
StyleControl := TControl(StyleObject.FindStyleResource('Detail'));
StyleControl.Align := TAlignLayout.Top;
StyleControl.Margins.Top := StyleControl.Margins.Bottom;
StyleControl.Margins.Bottom := 0;
end;
end;
Mavarik
|