You've already forked lazarus-ccr
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7356 8e941d3f-bd1b-0410-a28a-d453659cc2b4
29 lines
384 B
ObjectPascal
29 lines
384 B
ObjectPascal
unit Utils;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, StdCtrls;
|
|
|
|
function AnySelected(AListbox: TListBox): Boolean;
|
|
|
|
implementation
|
|
|
|
function AnySelected(AListBox: TListBox): Boolean;
|
|
var
|
|
i: Integer;
|
|
begin
|
|
Result := false;
|
|
for i := 0 to AListbox.Items.Count-1 do
|
|
if AListbox.Selected[i] then
|
|
begin
|
|
Result := true;
|
|
exit;
|
|
end;
|
|
end;
|
|
|
|
end.
|
|
|