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-22042
Angel s
2001-12-15 23:04
2002.01.08
Upload jpg file to image


6-22315
Marser
2001-08-01 16:04
2002.01.08
SMS message


3-21966
Z.G.
2001-12-03 12:42
2002.01.08
WHY THAT DID ALL MY QUESTIONS. We'll have to repeat How to search the Type in the field: Ceilings are written and I need to find


1-22254
ease
2001-12-17 13:32
2002.01.08
Archiving data


4-22500
Yus
2001-11-06 20:32
2002.01.08
Coordinates of desktop icons





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