the ICL Scrollview TTMSFMXNativeUIScrollView does not show controls which are out of scroll in designtime:
- place a TTMSFMXNativeUIScrollView on the form - place two TTMSFMXNativeUILabel inside the scrollview with some distance to each other - reduce the scrollviews size so that only one label is seen
The UIScrollView has an event that asks for
the view that needs to be scrolled. Please first add another UIView as the
scrollable view, and then place the labels inside that view.
procedure TForm2.FormShow(Sender: TObject); var i: Integer; begin for i := 0 to Scroll.ChildrenCount - 1 do TTMSFMXNativeUIBaseControl(Scroll.Children).Initialize; end;
procedure TMSFMXNativeBaseControlInitializeChildren(TMSFMXNativeUIBaseControl: TTMSFMXNativeUIBaseControl); var aLoop: Integer; begin for aLoop := 0 to TMSFMXNativeUIBaseControl.ChildrenCount - 1 do begin if TMSFMXNativeUIBaseControl.Children[aLoop] is TTMSFMXNativeUIBaseControl then begin TTMSFMXNativeUIBaseControl(TMSFMXNativeUIBaseControl.Children[aLoop]).Initialize; TMSFMXNativeBaseControlInitializeChildren(TTMSFMXNativeUIBaseControl(TMSFMXNativeUIBaseControl.Children[aLoop])); end; end; end;