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

Down

Event lock Find similar branches


Mikhalyov Dmitry   (2001-12-19 14:53) [0]

Подскажите как можно блокировать вызов события(например чтобы Edit1.OnChange выполнялось когда я захочу а не каждый раз при изменении Edit1)



Digitman   (2001-12-19 14:55) [1]

когда "не хочешь", установи Edit1.OnChange:= nil. Восстанови его на место, когда "снова захочешь"



TonnyS   (2001-12-19 15:45) [2]

Вариант:

const
stOnChange : boolean = true;

procedure TForm1.Edit1Change;
begin
if not stOnChange then exit;
.
end;

ставиш stOnChange := False - код в событии не отрабатывает.



Pages: 1 whole branch

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

Top









Memory: 0.81 MB
Time: 0.032 c
7-22433
igor_prg
2001-09-25 21:28
2002.01.08
How to register a class ???


1-22058
$ Hic0
2001-12-16 11:49
2002.01.08
TTreeView and TListView


3-21944
MVova
2001-12-03 16:50
2002.01.08
How to find the path to the files?


1-22149
Roman_zdrj
2001-12-20 12:43
2002.01.08
calls from dll


1-22178
Anastasia
2001-12-15 21:38
2002.01.08
Need information!





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