Javi Posted January 5, 2012 Share Posted January 5, 2012 Hello I have a form with autoscroll to true. How I can get the scroll up at all? Thanks ------------------------------------------- Hola Tengo un formulario con autoscroll a true. ¿Cómo yo puedo poner el scroll arriba del todo? Gracias Quote Link to comment Share on other sites More sharing options...
Javi Posted January 6, 2012 Author Share Posted January 6, 2012 A little more graphic. How I can do this? Thanks --------------------------------------------- Un poco más grafico. ¿ Como puedo yo hacer esto ? Gracias Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 6, 2012 Administrators Share Posted January 6, 2012 I'm not aware of any API function which can achieve this. Quote Link to comment Share on other sites More sharing options...
Javi Posted January 7, 2012 Author Share Posted January 7, 2012 I have found how to do Self.WebForm.ExtForm.Body.ScrollTo('Top', 0); Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 7, 2012 Administrators Share Posted January 7, 2012 I have found how to do Self.WebForm.ExtForm.Body.ScrollTo('Top', 0); Great. Thanks for update. Yes Body is the correct target. I tried it on Form "el" and it didn't work. FYI here is the JS equivalent: MainForm.form.body.scrollTo('top', 0); Quote Link to comment Share on other sites More sharing options...
dionel1969 Posted January 7, 2012 Share Posted January 7, 2012 Great. Thanks for update. Yes Body is the correct target. I tried it on Form "el" and it didn't work. FYI here is the JS equivalent: MainForm.form.body.scrollTo('top', 0); It means 'left' and 'right' must work too or not??? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 7, 2012 Administrators Share Posted January 7, 2012 top and left are valid keywords here. Quote Link to comment Share on other sites More sharing options...
Javi Posted January 9, 2012 Author Share Posted January 9, 2012 Great. Thanks for update. Yes Body is the correct target. I tried it on Form "el" and it didn't work. FYI here is the JS equivalent: MainForm.form.body.scrollTo('top', 0); Works for me MainForm.Form.Body.ScrollTo ('Top', 0); UniServerModule > MainFormDisplayMode = mfPage MainForm > AutoScroll = True ------------------------------------ A mi me funciona MainForm.Form.Body.ScrollTo('Top', 0); UniServerModule > MainFormDisplayMode = mfPage MainForm > AutoScroll = True Quote Link to comment Share on other sites More sharing options...
Ronak Posted October 20, 2014 Share Posted October 20, 2014 how can I scroll mainform to top with JSFORM instead of Self.WebForm.ExtForm.Body.ScrollTo('Top', 0) Self.WebForm.JsForm.... Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 20, 2014 Administrators Share Posted October 20, 2014 uses ..., uniGUIJSInterface; (WebForm as IUniJSInterface).JSCall('body.scrollTo', ['top', 0], WebForm.JSForm); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.