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

Using TMSFMXNativeNSToolbar is not working in wind

 Post Reply Post Reply
Author
Geißler Frank View Drop Down
New Member
New Member
Avatar

Joined: 28 Sep 2013
Posts: 4
Post Options Post Options   Quote Geißler Frank Quote  Post ReplyReply Direct Link To This Post Topic: Using TMSFMXNativeNSToolbar is not working in wind
    Posted: 01 Nov 2013 at 3:43pm

Hello,


I want to use TMSFMXNativeNSToolbar like a settings window in Xcode.

I have set the BorderIcons biMinimize property in the Object Inspector to false for the form.

Now the TMSFMXNativeNSToolbar in the running program is not shown.


TMS mCL v1.0.2.0

Embarcadero Delphi Version XE5 19.0.13856.4978

OS X 10.9 (13A603)


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

Joined: 18 May 2010
Posts: 3241
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 04 Nov 2013 at 7:59am
Hi, 

Setting the bordericons will reset the toolbar, you can place this in the formshow to set the toolbar again, and add the units: FMX.Platform.Mac and MacApi.AppKit

var
  h: TMacWindowHandle;
begin
  h := WindowHandleToPlatform(self.Handle);
  h.Wnd.setToolbar(Macapi.AppKit.NSToolbar(TMSFMXNativeNSToolbar1.ToolBar));

Kind Regards, 
Pieter
Back to Top
Geißler Frank View Drop Down
New Member
New Member
Avatar

Joined: 28 Sep 2013
Posts: 4
Post Options Post Options   Quote Geißler Frank Quote  Post ReplyReply Direct Link To This Post Posted: 05 Nov 2013 at 2:50pm
Thanks for the reply, it works.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down