Hi,
can you add the following to TTMSFMXNativeNSTextField in further versions?
TTMSFMXNativeNSTextField = class(TTMSFMXNativeNSBaseControl)
private
FText: string;
FTextAlign: TTextAlign;
...
procedure SetTextAlign(const Value: TTextAlign);
...
published
property TextAlign: TTextAlign read FTextAlign write SetTextAlign;
...
procedure TTMSFMXNativeNSTextField.SetTextAlign(const Value: TTextAlign);
begin
FTextAlign := Value;
UpdateText;
end;
...
procedure TTMSFMXNativeNSTextField.UpdateText;
begin
{$IFDEF MACOS}
if Assigned(FTextField) then
begin
FTextField.setStringValue(NSStr(FText));
case FTextAlign of
TTextAlign.taCenter: FTextField.setAlignment(2);
TTextAlign.taLeading: FTextField.setAlignment(0);
TTextAlign.taTrailing: FTextField.setAlignment(1);
end;
end;
{$ENDIF}
end;
Is it also possible to add NSOutlineView as well as nspopupbutton? It seem to be that almost no application uses a regular combobox and provides the popupbutton instead.
Christian