mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 22:19:17 +02:00
64 bits fixes
git-svn-id: trunk@8932 -
This commit is contained in:
parent
a2d20ac958
commit
5c372c949e
@ -113,12 +113,12 @@ var
|
|||||||
Index: integer;
|
Index: integer;
|
||||||
begin
|
begin
|
||||||
Index := ListBox.ItemIndex;
|
Index := ListBox.ItemIndex;
|
||||||
if Index = -1
|
if Index = -1 then
|
||||||
then ListBox.Items.Add('Button 1 clicked')
|
ListBox.Items.Add('Button 1 clicked')
|
||||||
else ListBox.Items.Insert(Index,
|
else
|
||||||
'Button 1 clicked at '+IntToStr(Index));
|
ListBox.Items.Insert(Index, 'Button 1 clicked at '+IntToStr(Index));
|
||||||
for Index := 0 to ListBox.Items.Count - 1
|
for Index := 0 to ListBox.Items.Count - 1 do
|
||||||
do ListBox.Items.Objects[Index] := TObject(Index);
|
ListBox.Items.Objects[Index] := TObject(PtrInt(Index));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TListBoxTestForm.Button2Click(Sender: TObject);
|
procedure TListBoxTestForm.Button2Click(Sender: TObject);
|
||||||
@ -137,9 +137,9 @@ end;
|
|||||||
|
|
||||||
procedure TListBoxTestForm.Button4Click(Sender: TObject);
|
procedure TListBoxTestForm.Button4Click(Sender: TObject);
|
||||||
var
|
var
|
||||||
X: integer;
|
X: PtrInt;
|
||||||
begin
|
begin
|
||||||
X := integer(ListBox.Items.Objects[ListBox.ItemIndex]);
|
X := PtrInt(ListBox.Items.Objects[ListBox.ItemIndex]);
|
||||||
writeln('TListBoxTestForm.Button4Click ',X);
|
writeln('TListBoxTestForm.Button4Click ',X);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user