lazarus/components/turbopower_ipro/iphtmltablist.pas
andrew 7bd498e426 Changed tabkey handling for Iphtml. Speeds up loading large pages of links considerably. maybe 100x
Fixed bug #21326 - PgUp PgDown etc didn't do anything.
Now up, down left, right, space, return, pgup and pgdown are handled.

git-svn-id: trunk@40505 -
2013-03-07 18:38:47 +00:00

44 lines
610 B
ObjectPascal

unit IpHtmlTabList;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type
{ TIpHtmlTabList }
TIpHtmlTabList = class(TFPList)
private
FIndex: Integer;
function GetTabItem: TObject;
public
constructor Create;
property Index: Integer read FIndex write FIndex;
property TabItem: TObject read GetTabItem;
end;
implementation
{ TIpHtmlTabList }
function TIpHtmlTabList.GetTabItem: TObject;
begin
if FIndex = -1 then
Exit(nil)
else
Result := TObject(Items[FIndex]);
end;
constructor TIpHtmlTabList.Create;
begin
Inherited Create;
FIndex:=-1;
end;
end.