Print Page | Close Window

Using TMSFMXNativeNSToolbar is not working in wind

Printed From: TMS Software
Category: FMX Components
Forum Name: FMX mCL
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=3148
Printed Date: 23 Aug 2019 at 11:05am


Topic: Using TMSFMXNativeNSToolbar is not working in wind
Posted By: Gei├čler Frank
Subject: Using TMSFMXNativeNSToolbar is not working in wind
Date 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)





Replies:
Posted By: Pieter Scheldeman
Date 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


Posted By: Gei├čler Frank
Date Posted: 05 Nov 2013 at 2:50pm
Thanks for the reply, it works.



Print Page | Close Window