Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > Delphi программирование > Общие вопросы Delphi
Регистрация

Восстановить пароль
Повторная активизация e-mail

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 14.11.2009, 01:15   #1
TwiX
Участник клуба
 
Аватар для TwiX
 
Регистрация: 28.07.2009
Сообщений: 1,510
По умолчанию Чем отличаются стили listBox'a?

Долго думал, почему не хочет заходить в функцию отрисовки итема, покопался - нашел стили - сменил стандартный на овнерДроуВариэйбл - зарабола. Так я и задался вопросом чем же отличаются стили лист бокса =)
TwiX вне форума Ответить с цитированием
Старый 14.11.2009, 01:33   #2
mihali4
*
Старожил
 
Регистрация: 22.11.2006
Сообщений: 9,201
По умолчанию

Жмем волшебную клавишу F1 и, о чудо!
Цитата:
TListBoxStyle type
lbStandard
All items are strings, with each item the same height.
lbOwnerDrawFixed
The list box is owner-drawn, but each item in the list box is the height specified by the ItemHeight property. Each time an item is displayed in an lbOwnerDrawFixed list box, the OnDrawItem event occurs. The event handler for OnDrawItem draws the specified item. The ItemHeight property determines the height of each of the items.
lbOwnerDrawVariable
The list box is owner-drawn, and items in the list box can be of varying heights. Each time an item is displayed in an lbOwnerDrawVariable list box, two events occur. The first is the OnMeasureItem event. The code for the OnMeasureItem handler can set the height of each item. Then the OnDrawItem event occurs. The code for the OnDrawItem handler draws each item in the list box using the size specified by the OnMeasureItem handler.
lbVirtual
The list box is virtual, but all items are strings with the same height. You must indicate the number of items in the list box by setting the Count property. You must supply the items in the list box using an OnData event handler. If the items have associated objects, you must supply them using an OnDataObject event handler. In addition, you must supply an OnDataFind event handler to provide the mapping from the strings in the list box to their indexes.
lbVirtualOwnerDraw
The list box is virtual and owner-drawn. All items are the same height. As with lbOwnerDrawFixed, the item height is specified by the ItemHeight property, and you must draw items using an OnDrawItem event handler. As with lbVirtual, you must set the Count property and supply OnData and OnDataFind event handlers to provide the mapping between items and indexes. If items are associated with objects, you must also supply an OnDataObject event handler.
(Услуги переводчика - платные)
mihali4 вне форума Ответить с цитированием
Старый 14.11.2009, 01:40   #3
TwiX
Участник клуба
 
Аватар для TwiX
 
Регистрация: 28.07.2009
Сообщений: 1,510
По умолчанию

Спасибо)
За справку извиняюсь - действительно забыл туда заглянуть =)
TwiX вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц

Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск


Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Как окрасить строки ListBox'a в разные цвета??? AtiLin Общие вопросы C/C++ 0 06.04.2009 21:08
Чем отличаются классы от объектов в Delphi? JY_ Помощь студентам 1 25.01.2009 18:57
Чем отличаются обычный программист и "игровой" ?? aVague Gamedev - cоздание игр: Unity, OpenGL, DirectX 22 11.11.2007 23:41
Чем отличаются фундаментальные типы данных от общих? avp Общие вопросы Delphi 1 17.07.2007 09:02
Аномалии ListBox'a Viteef Компоненты Delphi 3 22.05.2007 20:09