Jim Burns wrote:
> Quick question.  In D7, been playing with a LV and I needed to auto scroll
> the LV to the bottom as new entries are added.  Taking a look at the LVM_
> messages, I found LVM_SCROLL.  Simple enough, the help specifies,
>
>   dy
>   Integer value that specifies the amount of vertical scrolling.
>
>   ... If the view type of the list view control is report view, this
>   value specifies the number of lines to scroll.

That's not what MSDN says. MSDN says this:

"When the list-view control is in report view, the control can only be
scrolled vertically in whole line increments. Therefore, the dy parameter
will be rounded to the nearest number of pixels that form a whole line
increment. For example, if the height of a line is 16 pixels and 8 is
passed for dy, the list will be scrolled by 16 pixels (1 line). If 7 is
passed for dy, the list will be scrolled 0 pixels (0 lines)."

-- 
Rob


__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to