From: Daniel R. <da...@an...> - 2003-03-07 15:04:56
|
> > it is not what i need. > > for example, i have a SynEdit with unknown visible > line numbers (it's resizable), now i want to add a > dynamic text at runtime (it maybe a single line or > even a combination of 100 lines!). > > also i don't want to display the current line > (containing the caret) at the top of the SynEdit, i > just need to scroll down the SynEdit to display the > current line at the bottom of the control. > > something like when we paste a text (as i said > before). Yeah, I did understand your problem but I don't understand why it cannot be solved using TopLine. Something like this: SynEdit.TopLine := SynEdit.CaretY - SynEdit.LinesInWindow This should scroll SynEdit, so the last visible line containts the caret. Regards, Daniel |