dunham Posted February 24, 2016 Posted February 24, 2016 hello, i have got a html frame with 100 lines , i would like to focus on a specific line number. is there a method to do that in TUniHTMLFrame component to select the line number that the component show to the user. thank you! Quote
mhmda Posted February 25, 2016 Posted February 25, 2016 Hi, It's up to you because you decide what will be rendered inside the HTML frame (html elements). When you say 'lines' what do you mean? explain more? Quote
dunham Posted February 25, 2016 Author Posted February 25, 2016 when loading text inside the component il show the top of the text i.e the first line i would like to show a line number by code i.e : i woul like to make a vertical 'autoscroll ' by code in the component htmlframe Quote
dunham Posted February 25, 2016 Author Posted February 25, 2016 or if you you prefer ; focus on a line inside component htmlframe Quote
zilav Posted February 25, 2016 Posted February 25, 2016 I suggest you to use some js component that supports viewing text with line numbers and has method to focus on specific line, or scroll it into the view. You can code that yourself, but I'm pretty sure this is already available so no point in reinventing the wheel. Quote
Sherzod Posted February 28, 2016 Posted February 28, 2016 Hi,Try to analyze the following links: http://stackoverflow.com/questions/2035910/how-to-get-the-number-of-lines-in-a-textarea http://stackoverflow.com/questions/13650534/how-to-select-line-of-text-in-textarea http://jsfiddle.net/5enfp/Best regards. Quote
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.