| | |
Assigning event
Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2005
Posts: 6
Reputation:
Solved Threads: 0
i create an array of panels
var bt:array[1..3,1..2] of TPanel;
so i go in Form1.FormCreate and i write:
for i:=1 to 3 do
for j:=1 to 2 do
begin
bt[i, j]:=TPanel.Create(self);
bt[i, j].Parent:=self;
bt[i, j].OnCLick:=????????????????????????????????;
end;
i created a procedure TForm1.press(x,y:integer) what should do the OnClick and i wrote in Form1.FormCreate
bt[i,j].OnClick:=TForm1.press(j,i)
but i get only error
some 1 pls tell me what i have to do!!!
var bt:array[1..3,1..2] of TPanel;
so i go in Form1.FormCreate and i write:
for i:=1 to 3 do
for j:=1 to 2 do
begin
bt[i, j]:=TPanel.Create(self);
bt[i, j].Parent:=self;
bt[i, j].OnCLick:=????????????????????????????????;
end;
i created a procedure TForm1.press(x,y:integer) what should do the OnClick and i wrote in Form1.FormCreate
bt[i,j].OnClick:=TForm1.press(j,i)
but i get only error
some 1 pls tell me what i have to do!!!
![]() |
Similar Threads
- Java awt and swing event handling (Java)
- Error when making an event procedure in Visual Basic (C)
- Event List for Car Show Fan Site - (PHP)
- Win XP Pro - Event Log (Windows NT / 2000 / XP)
- FreeBSD only assigning inet6 addresses to ndis0 (*nix Software)
- 35 processes, need to trim the fat (Viruses, Spyware and other Nasties)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Packets sending...
- Next Thread: TChart - [Fatal Error] File not found: TeeConst.pas
Views: 2087 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Pascal and Delphi





