Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "KOL";
Текущий архив: 2005.10.16;
Скачать: [xml.tar.bz2];

Вниз

Current Listbox Selection   Найти похожие ветки 

 
Lars   (2005-02-13 05:15) [0]

How to get Current Item Index or current selection text of a Listbox?


 
Lars   (2005-02-13 05:22) [1]

I think i got it:

Example: {LB1 is a listbox}

for iLoc:= 0 to LB1.count -1 do
if LB1.ItemSelected[iLoc] then  form.Caption:= int2str(iLoc);

Unless there was an easier way?
if not, should this be made into a function into KOL.pas to grab the current selected listbox item?


 
SPeller ©   (2005-02-13 06:17) [2]

LB.CurIndex and LB.Items[]


 
Lars   (2005-02-13 06:59) [3]

For some reason I tried that and thought it did not work, now it does!

Another question about listbox I have:
I can multi-select even though Options ioMultiSelect is set to False in the IDE.

(windows 98 if it makes a difference)


 
WhiteGuy ©   (2005-02-13 07:16) [4]

I can multi-select even though Options ioMultiSelect is set to False in the IDE.

Yeah, dude! I"ve got the same problem!

VLADIMIR!!! :)


 
ECM ©   (2005-02-13 10:53) [5]

loNoExtendSel = TRUE; !!!
loMultiSelect = FALSE;
Иначе не работает LB_SETCURSEL и соответсвенно LB_GETCURSEL
http://delphimaster.net/view/11-1099944747/


 
Lars   (2005-02-13 23:21) [6]

Yes loNoExtendSel = TRUE; fixes that problem

PS. It"s because I"m working on a few hexapad addons http://www.geocities.com/koltempfile/down/HexaPad_L1.zip


 
ECM ©   (2005-02-14 12:48) [7]

2Lars:
Your version HexaPad have old bug:
After launch Exe-file press "Ins" -> AV

To fix:
...
procedure TForm1.KOLForm1mmInsertMenu(Sender: PMenu; Item: Integer);
var b: Byte;
begin
 if Content = nil then Exit;
...


 
Владимир Кладов   (2005-02-14 20:08) [8]

In the new version (on my site) also two useful features were added: function START and operator SELECT in script language - to allow walking throw the data blocks of some know structure. And some very small bugs fixed in script interpreter.


 
Lars   (2005-02-15 04:45) [9]

Ahh! Do we have to start using CVS or something, to keep up with each other?  

I found something interesting with Exes in HexaPad which you guys probably have the answer to.. WTF is there Delphi Indy Direct text in the EXE??

http://positivesale.com/KOLDelphi/q/1.htm



Страницы: 1 вся ветка

Форум: "KOL";
Текущий архив: 2005.10.16;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.032 c
2-1127283609
Гость22
2005-09-21 10:20
2005.10.16
вопрос о связывании таблиц


3-1125407170
menart
2005-08-30 17:06
2005.10.16
Как отловить изменение размера столбца в TDBGrid?


8-1117027701
Задающий вопросы
2005-05-25 17:28
2005.10.16
В чём хранить звуки?


14-1127805936
pazitrton_brain
2005-09-27 11:25
2005.10.16
Петиция.


3-1125568545
AndrewK
2005-09-01 13:55
2005.10.16
Стандарты оформления





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский