Abaksoft Posted August 29, 2020 Share Posted August 29, 2020 Hello Sherzod, If you don't mind, i can't return to the top of a MainmForm after scrolling (bottom). Settings : procedure TMainmForm.UnimFormCreate(Sender: TObject); begin // to Get a vertical Scroll (without UnimScrollBox) MainmForm.AutoHeight:=False; MainmForm.Scrollable:=True; end; procedure TMainmForm.UnimButton1Click(Sender: TObject); begin // Raise AV MainmForm.VertScrollBar.Position:=0; // Maybe something like ? // UniMemo1.JSInterface.JSCall('inputEl.scrollTo', ['top']); end; Build 1535 Thx. Project1.7z Link to comment Share on other sites More sharing options...
Sherzod Posted August 29, 2020 Share Posted August 29, 2020 28 minutes ago, Abaksoft said: i can't return to the top of a MainmForm after scrolling (bottom). Hello, Self.WebForm.JSInterface.JSCall('getScrollable().scrollTo', ['top']); 1 Link to comment Share on other sites More sharing options...
Abaksoft Posted August 29, 2020 Author Share Posted August 29, 2020 5 minutes ago, Sherzod said: Hello, Self.WebForm.JSInterface.JSCall('getScrollable().scrollTo', ['top']); Perfect Maestro Many thx 1 Link to comment Share on other sites More sharing options...
mikromundo Posted December 14, 2020 Share Posted December 14, 2020 It´s OK Link to comment Share on other sites More sharing options...
Recommended Posts