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

Down

How to call the procedure after the full display of the main form? Find similar branches


Smok_er   (2002-01-22 04:49) [0]

Ladies and Gentlemen!
This is the question for you: how to call a certain procedure after the complete creation and display of the main form? The OnCreate and OnShow methods are not suitable, because this procedure is first performed (which is quite a long time), and only then the form is displayed.
Thank you in advance!



Digitman   (2002-01-22 08:18) [1]

In the OnShow () handler, they sent themselves to themselves some predefined message by calling PostMessage (). In the message handler, call your "certain procedure"



Johnny Smith   (2002-01-22 09:42) [2]

You can do this: before starting your procedure, write Form1.Repaint;



aus   (2002-01-22 12:28) [3]

OnActivate



dimsfdf   (2002-01-22 13:48) [4]

Application.OnIdle



Smok_er   (2002-01-23 03:01) [5]

Thank you all who responded!
With the OnActivate method, everything turns out great!



SoftOne   (2002-01-23 03:11) [6]

2 Smok_er.
IMHO, according to OnActivate, you can earn hemorrhoids, since it can be called up a number of times during the operation of the application. So is OnIdle.
If you need a one-time call of a function when you start the application, but after displaying the form, then IMHO Digiman gave the best advice.



SoftOne   (2002-01-23 04:01) [7]

Sorry. I wrote the previous answer while thinking about my problems. However, upon serious consideration, I realized that I was not quite right. In essence, OnActivate is probably the best solution, but with a mandatory consideration singleness fulfillment. Digitman's advice, due to the ideology of Windows, may not be suitable (again, I recall my problems) since some time may elapse between completing OnShow and executing PostMessage.



Pages: 1 whole branch

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

Top





Memory: 0.56 MB
Time: 0.024 c
1-18889
Vtt
2002-01-23 17:43
2002.02.07
help to convert the file name in DOSovskoe


1-18883
mapnn
2002-01-19 15:16
2002.02.07
How to get a list of not yet created forms in Run Time?


3-18727
saviola
2002-01-10 13:28
2002.02.07
How to delete a record from a table, such as clicking on a minus in DBNavigator


14-18960
SP
2001-12-18 16:15
2002.02.07
The size of the compiled file ...


14-18985
Dima
2001-12-19 17:31
2002.02.07
Motherboard





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 ภาษาไทย turkish Ukrainian urdu Tiếng Việt 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