Print Page | Close Window

Several Suggestions

Printed From: TMS Software
Category: FMX Components
Forum Name: FMX mCL
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=4143
Printed Date: 19 Feb 2020 at 3:37pm


Topic: Several Suggestions
Posted By: Hackbart Christian
Subject: Several Suggestions
Date Posted: 16 Aug 2014 at 7:28am

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




Replies:
Posted By: Pieter Scheldeman
Date Posted: 18 Aug 2014 at 2:44am
Dear Christian, 

Thank you for your feedback,
We have added this on our feature request list.

Kind Regards, 
Pieter


Posted By: Hackbart Christian
Date Posted: 18 Aug 2014 at 5:25am

Great, also a nice idea would be to add the text field in a combobox. 

Right now i have to read the content via: UTF8ToString(TMSFMXNativeNSComboBox1.ComboBox.stringValue.UTF8String)

Cheers,
Christian




Print Page | Close Window