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

Native NS Toolbar

 Post Reply Post Reply
Author
swedorski scott View Drop Down
New Member
New Member
Avatar

Joined: 31 Mar 2014
Posts: 36
Post Options Post Options   Quote swedorski scott Quote  Post ReplyReply Direct Link To This Post Topic: Native NS Toolbar
    Posted: 15 Sep 2015 at 2:11pm
Using XE8, latest version of mCL.

It appears as though the native toolbar cannot be hidden. Is there any other method that would allow me to hide the toolbar? I'm trying to use this toolbar for OSX, and a different one for Windows.
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3463
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 15 Sep 2015 at 2:28pm
Hi, 

In Windows the native toolbar isn't shown, so a simple Visible := False would suffice.

Kind Regards, 
Pieter
Back to Top
swedorski scott View Drop Down
New Member
New Member
Avatar

Joined: 31 Mar 2014
Posts: 36
Post Options Post Options   Quote swedorski scott Quote  Post ReplyReply Direct Link To This Post Posted: 15 Sep 2015 at 3:05pm
Sorry, What I actually meant was that on OSX, the native toolbar visible property doesn't work. I was trying to implement an option for which toolbar to show.
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3463
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 15 Sep 2015 at 3:10pm
Hi, 

What you could try for the Mac side is the following code (on project form level):

var
  h: TMacWindowHandle;
begin
  h := WindowHandleToPlatform(Self.Handle);
  if Assigned(h.Wnd) then
    h.Wnd.setToolbar(nil);
end;

It requires the FMX.Platform.Mac unit.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down