|
Вопрос # 3 255/ вопрос открыт / |
|
Доброго времени суток, уважаемые эксперты!
Вопрос собственно такой, есть индес итема из ListView(например 48), как узнать что строчка с этим индексом в данный момент не показана???
Спасибо за ответ)))
 |
Вопрос задал: Anatol_rus (статус: Посетитель)
Вопрос отправлен: 6 октября 2009, 19:05
Состояние вопроса: открыт, ответов: 1.
|
Ответ #1. Отвечает эксперт: min@y™
Как на счёт метода TListItem.DisplayRect()?
Returns the bounding rectangle of the list item.
Delphi syntax:
type TDisplayCode = (drBounds, drIcon, drLabel, drSelectBounds);
function DisplayRect(Code: TDisplayCode): TRect;
Description
Use DisplayRect to get the coordinates of the list item in the client coordinates of the containing listview. The Code parameter specifies what part of the item the bounding rectangle surrounds. These are the possible values for the Code parameter.
Value | Meaning |
drBounds | Returns the bounding rectangle of the entire list item, including the icon and label. |
drIcon | Returns the bounding rectangle of the icon or small icon. |
drLabel | Returns the bounding rectangle of the item text. |
drSelectBounds | Returns the union of the icon and label rectangles, but excludes columns in report view. |
Сам не пользовалься, не знаю.
З.Ы. Админу: почему таблица так вниз съезжает? Или это только у меня?
 |
Ответ отправил: min@y™ (статус: Доктор наук)
Время отправки: 6 октября 2009, 19:35
|
Мини-форум вопроса
Всего сообщений: 0.
6 октября 2009, 21:22: Вопрос перемещён из тематического раздела Delphi » Общие вопросы по программированию в раздел Delphi » Работа с компонентами и библиотеками модератором Ерёмин А.А.
Чтобы оставлять сообщения в мини-форумах, Вы должны авторизироваться на сайте.
|