Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

People, quite an easy question! Link to the procedure in one word. Find similar branches


Serg5   (2001-12-19 15:14) [0]

procedure TForm1.Button1Click (Sender: TObject);
was
a, b: integer;
begin
a: = 3;
b: = 0;
b:=a*StrToInt(Edit4.Text)*StrToInt(Edit3.Text);
Label7.Caption:=IntToStr(b);
end;

procedure TForm1.Button2Click (Sender: TObject);
begin
Button1Click(); <<<< что тут ей написать???
end;

Thank you!



tovSuhov   (2001-12-19 15:20) [1]

Можно в Object Inspector`е событию OnClick присвоить Button1Click, если в рун-тайме переопределять события не понадобится.



MBo   (2001-12-19 15:25) [2]

Sender и пиши, но проще как tovSuhov написал или задать (хоть в TForm1.Create)
Button2.Onclick:=Button1Click;



Alexander   (2001-12-19 15:51) [3]

Пиши Button1Click(Self);



Mick   (2001-12-19 15:59) [4]

В данном конкретном случае просто пиши Button1Click(nil);



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.82 MB
Time: 0.041 c
1-22075
as
2001-12-19 12:40
2002.01.08
Tables in MS Word


6-22273
Denis Titov
2001-10-06 11:50
2002.01.08
Building local networks


14-22359
Sergey1
2001-11-07 15:36
2002.01.08
Cp1251


1-22036
Smuggler
2001-12-18 14:01
2002.01.08
Word processor


3-21929
@andrew
2001-12-04 11:38
2002.01.08
HELLO! I make a journal. Where did the task ....





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish