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 (); <<<< what is there to write to her ???
end;

Thank you!



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

You can assign a Button1Click to the OnClick event in the Object Inspector, if you do not need to override events in rune-time.



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

Sender and write, but easier as tovSuhov wrote or set (at least in TForm1.Create)
Button2.Onclick: = Button1Click;



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

Write Button1Click (Self);



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

In this particular case, just write Button1Click (nil);



Pages: 1 whole branch

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

Top





Memory: 0.55 MB
Time: 0.024 c
14:22355
frostbite
2001-11-06 12:39
2002.01.08
Translation


4:22508
Gluka
2001-11-06 00:18
2002.01.08
Is it possible to change the cursor over someone else's window?


1:22097
Serzhik
2001-12-19 15:45
2002.01.08
What are the two buttons to attach, so that they are at the bottom center?


14:22344
anod
2001-11-06 13:15
2002.01.08
Crosses - tic


1:22052
avr555
2001-12-17 19:54
2002.01.08
Drag and Drop Component





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 Spanish 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