Author Topic: scrolling an _editor control  (Read 2805 times)

boaz

  • Community Member
  • Posts: 43
  • Hero Points: 0
scrolling an _editor control
« on: January 15, 2012, 12:26:29 pm »
I have a form with a mini-console (_editor control)
I would like that every time something is printed to this console, the horizontal scroll (if exists) will scroll to the far left (beginning of the line)
Tried set_scroll_pos, and _refresh_scroll() without any luck.

any thoughts?

Graeme

  • Senior Community Member
  • Posts: 2518
  • Hero Points: 327
Re: scrolling an _editor control
« Reply #1 on: January 15, 2012, 08:22:02 pm »
Maybe the p_left_edge property.  Or maybe _begin_line

chrisant

  • Senior Community Member
  • Posts: 1410
  • Hero Points: 131
Re: scrolling an _editor control
« Reply #2 on: January 15, 2012, 09:17:08 pm »
_begin_line()?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2545
  • Hero Points: 141
Re: scrolling an _editor control
« Reply #3 on: January 16, 2012, 01:55:15 pm »
_begin_line() should work.  You could also set p_scroll_left_edge to -1.

boaz

  • Community Member
  • Posts: 43
  • Hero Points: 0
Re: scrolling an _editor control
« Reply #4 on: January 17, 2012, 04:08:29 pm »
worked like a charm...
Thank you all!