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

Down

Form.OnCloseQuery - How to handle? Find similar branches


Андрей Сенченко   (2001-12-18 12:49) [0]

What to do to prevent the program from closing?
In the Form.OnCloseQuery handler, I put:

If MessageBox (0, pchar ("Do you really want to end the program?"), Pchar ("Attention!"), MB_OKCANCEL + MB_ICONQUESTION) = IDOK
Then
// ....
// Perform actions required before exiting
//
else
// ??????????????
End;

But actually where the questions - I just can not find - how to interrupt the completion of the program.
Please tell me where to look? Thank.



Виктор Щербаков   (2001-12-18 12:58) [1]

Well, there is an example in the help ...
CanClose: = false



Андрей Сенченко   (2001-12-18 13:01) [2]

Not looking for help - in books. I have neither Help nor the SDK installed on this car - there is not enough screw.

Thank you :)



csf   (2001-12-18 13:03) [3]

By Query is not meant your Query to the user, but a request for a “window” to you, as a developer, “Rate, they say, can I close or not.”

The method has a parameter, look carefully.
FormCloseQuery (Sender: TObject; var CanClose: Boolean);



Андрей Сенченко   (2001-12-18 13:10) [4]

>> csf
> By Query is not meant your Query to the user, but the query "window"
> to you, as a developer, "Rate, they say, can I close or not."

This I know is not completely stupid :)

> The method has a parameter, look carefully.
> FormCloseQuery (Sender: TObject; var CanClose: Boolean);

I say the same: Ctrl-F1 on this wheelbarrow is not working off due to the lack of the established help. But on
"var CanClose: Boolean"
did not look ... happens.

Thanks to all !



Pages: 1 whole branch

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

Top









Memory: 0.56 MB
Time: 0.023 c
1-22150
Dimich
2001-12-20 13:22
2002.01.08
How to scroll in Panel


14-22394
Vitaly
2001-11-09 19:51
2002.01.08
MENTA Day tomorrow ....


1-22134
Rosco
2001-12-15 12:54
2002.01.08
And this is already there?


1-22124
abandon
2001-12-18 02:16
2002.01.08
Tags on jpg, bmp it.d.


4-22489
Skiv
2001-11-05 09:55
2002.01.08
Display version * .exe





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