0
다음은 셀에 버튼을 표시하려는 경우 Delphi XE5에서 작동합니다. 그러나 델파이 XE6에서는 그렇지 않습니다.어떻게 격자 셀 firemonkey 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에서 만들 수 있습니까?
나는 당신이 대답을 테스트했습니다 그것은 작동합니다. 올바른 응답이라고 말할 수 있습니까? 부디! –