SlickEdit Community

SlickEdit Product Discussion => SlickEditĀ® => Slick-CĀ® Macro Programming => Topic started by: boaz on January 15, 2012, 12:26:29 pm

Title: scrolling an _editor control
Post by: boaz 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?
Title: Re: scrolling an _editor control
Post by: Graeme on January 15, 2012, 08:22:02 pm
Maybe the p_left_edge property.  Or maybe _begin_line
Title: Re: scrolling an _editor control
Post by: chrisant on January 15, 2012, 09:17:08 pm
_begin_line()?
Title: Re: scrolling an _editor control
Post by: Dan on January 16, 2012, 01:55:15 pm
_begin_line() should work.  You could also set p_scroll_left_edge to -1.
Title: Re: scrolling an _editor control
Post by: boaz on January 17, 2012, 04:08:29 pm
worked like a charm...
Thank you all!