Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TMS FMX WebGMaps
Using the TTMSFMXWebGMaps inside a TTabControl

The TTMSFMXWebGMaps is a wrapper around the native webbrowser. When dropping the component on the form, the webbrowser follows the position and alignment of the wrapper control. There is however a technical limitation when using it as a child of a TTabControl. The native webbrowser doesn''t respond to tab changes, therefore you need to manually toggle the visible property. The following example demonstrates this technique when placing the TTMSFMXWebGMaps control on one of the pages of a TTabControl.
procedure TForm1.TabControl1Change(Sender: TObject);
begin
  TMSFMXWebGMaps1.Visible := TabControl1.ActiveTab = TabItem3;
end;