Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Several Suggestions

 Post Reply Post Reply
Author
Hackbart Christian View Drop Down
New Member
New Member
Avatar

Joined: 14 Sep 2013
Posts: 13
Post Options Post Options   Quote Hackbart Christian Quote  Post ReplyReply Direct Link To This Post Topic: Several Suggestions
    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

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3555
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Hackbart Christian View Drop Down
New Member
New Member
Avatar

Joined: 14 Sep 2013
Posts: 13
Post Options Post Options   Quote Hackbart Christian Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down