【发布时间】:2014-09-04 09:59:25
【问题描述】:
如果您希望单元格显示按钮,则以下内容适用于 Delphi XE5。 但是,在 Delphi XE6 中却没有。
Type
TSimpleLinkCell = class(TTextCell)
protected
FButton: TSpeedButton;
procedure ButtonClick(Sender: TObject);
public
constructor Create(AOwner: TComponent); reintroduce;
end;
constructor TSimpleLinkCell.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
Self.TextAlign := TTextAlign.taLeading;
FButton := TSpeedButton.Create(Self);
FButton.Parent := Self;
FButton.Height := 16;
FButton.Width := 16;
FButton.Align := TAlignLayout.alRight;
FButton.OnClick := ButtonClick;
end;
如何在 Delphi XE6 中进行上述工作?
【问题讨论】:
-
我已经测试了你的答案并且它有效。你能说这是正确的反应吗?请!
标签: delphi firemonkey delphi-xe6