Author Topic: scrolling an _editor control  (Read 3781 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: 2793
  • Hero Points: 347
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: 2896
  • Hero Points: 153
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!