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

Native controls on FMX controls

 Post Reply Post Reply
Author
Bauer Ingeborg View Drop Down
New Member
New Member
Avatar

Joined: 05 Jun 2013
Posts: 6
Post Options Post Options   Quote Bauer Ingeborg Quote  Post ReplyReply Direct Link To This Post Topic: Native controls on FMX controls
    Posted: 04 Jul 2014 at 7:48am
Hi Pieter,

maybe it will work while using the TEmbeddedControl.
The FM iOS implementation using that way.

Regards
Ronald

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

Joined: 18 May 2010
Posts: 3567
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 29 Apr 2014 at 5:47am
The TWebBrowser is wrapper around the native WebBrowser component on Mac OS X and "supports" placing it on a TabControl, and automatically handles the Tab switching, but this has been implemented only for the TWebBrowser control, as you can see in the source code of the tab control.

procedure TTabControl.WebBrowserReallign(Sender: TObject);
var
  BrowserManager : IFMXWBService;
begin
  if TPlatformServices.Current.SupportsPlatformService(IFMXWBService, IInterface(BrowserManager)) then
    BrowserManager.ReAlignBrowsers;
end;

Kind Regards, 
Pieter
Back to Top
Bauer Ingeborg View Drop Down
New Member
New Member
Avatar

Joined: 05 Jun 2013
Posts: 6
Post Options Post Options   Quote Bauer Ingeborg Quote  Post ReplyReply Direct Link To This Post Posted: 29 Apr 2014 at 5:43am
Isn't the TWebBrowser a native control on iOS and Android, which can be embedded 
in other controls? Is this a limit of the firemonkey on Mac?

Ronald
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8940
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 23 Apr 2014 at 11:51am
No this is not possible due to the nature of the FireMonkey framework.
Back to Top
Ingeborg Bauer View Drop Down
New Member
New Member
Avatar

Joined: 01 Nov 2013
Posts: 11
Post Options Post Options   Quote Ingeborg Bauer Quote  Post ReplyReply Direct Link To This Post Posted: 23 Apr 2014 at 11:50am
Hi support,

it seems, that all TMS native controls can only be placed on a TForm.
Is there a way to place native control on e.g. a TPanel or TabControl from FMX?

Regards
Ronald

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down