SliderValue and Text Areas

BlitzMax Forums/BlitzMax Programming/SliderValue and Text Areas

LordChaos(Posted 2006) [#1]
I write a small text editor which should show the rows on the left side of my text area. I figured out that the best way to do this is a canvas. It works fine until my text becomes so long I have to scroll, bu the row view doesn't "follow". If I scroll to line 10, the canvas still prints (of course), line 1 in the first row. For fixing this I would need the value of the slider of the text area Is there a way to do this? It seems there is no chance to solve this problem. :(


Mark Tiffany(Posted 2006) [#2]
I had the same problem - I wanted to add a simple gutter for highlight stuff to the CE version of the IDE, and having SliderValue(textarea) return something would have helped greatly. Another to add to the list of things needed in MaxGUI...


Brucey(Posted 2006) [#3]
sounds like a good idea to me.

However, since a textarea has 2-dimensional scrolling, you would need two SliderValue() methods, or a method that takes vert/horiz, or perhaps a method that simply returns the first line in view...

Something like gtk_text_view_get_visible_rect() would be nice :-)