parent
80977eb23d
commit
174e8f077c
|
|
@ -3257,10 +3257,30 @@ type TcustomListBox=class(TCustomListBoxbase)
|
||||||
{**
|
{**
|
||||||
@explan(说明)获取当前选中项的索引,仅用于单选的列表框%%
|
@explan(说明)获取当前选中项的索引,仅用于单选的列表框%%
|
||||||
**}
|
**}
|
||||||
if FMultisel=0 then
|
case FMultisel of
|
||||||
|
0: //µ¥Ñ¡
|
||||||
begin
|
begin
|
||||||
return FSelBegin;
|
return FSelBegin;
|
||||||
end
|
end
|
||||||
|
1: //Á¬ÐøÑ¡Ôñ
|
||||||
|
begin
|
||||||
|
return array(FSelBegin,FSelEnd);
|
||||||
|
end
|
||||||
|
2: //¼ä¶ÏÑ¡Ôñ
|
||||||
|
begin
|
||||||
|
r := array();
|
||||||
|
rl := 0;
|
||||||
|
for i,v in FMultisel3Data do
|
||||||
|
begin
|
||||||
|
if v then
|
||||||
|
begin
|
||||||
|
r[rl] := i;
|
||||||
|
rl++;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return r;
|
||||||
|
end
|
||||||
|
end
|
||||||
return -1;
|
return -1;
|
||||||
end
|
end
|
||||||
function setCurrentSelection(n);virtual;
|
function setCurrentSelection(n);virtual;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue