Tips and Frequently Asked Questions
Initializing controls on multiple forms
When creating an application that manages multiple forms, only the mainform will initialize and display its controls. In this example, the mainform contains an UINavigationController and pushes a UIViewController in view that is placed on a secondary form. Executing the following code, will navigate to the viewcontroller, but the viewcontroller and its children will not be visible / initialized.
TMSFMXNativeUINavigationController1.PushViewController(Form3.TMSFMXNativeUIViewController1,true);
procedure TForm1.InitializeControl(AControl: TControl); var I: Integer; begin if not Assigned(AControl) then Exit; if AControl is TTMSFMXNativeUIBaseControl then begin (AControl as TTMSFMXNativeUIBaseControl).Initialize; for I := 0 to AControl.ControlsCount - 1 do InitializeControl(AControl.Controls[I]); end; end;
procedure TForm1.TMSFMXNativeUIButton1Click(Sender: TObject); begin InitializeControl(SecondaryForm.TMSFMXNativeUIViewController1); TMSFMXNativeUINavigationController1.PushViewController(SecondaryForm.TMSFMXNativeUIViewController1,true); end;
Pricing
Single Developer License
Small Team License
Site License
TMS iCL
€ 125
€
75
yearly renewal
license for 1 developer
BEST VALUE
All prices excl. VAT. Renewal price is subject to change and only valid up to 30 days after license has expired. After renewal period a discount price is offered to renew the license.