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

Down

Creating a form leads to its appearance. Find similar branches


Loxly   (2002-02-03 19:57) [0]

Somehow calling TForm.Create results in calling TForm.Show

Dear Masters, I do not understand what the problem is. Programmatically create a form:
procedure TFormMain.miSaleOpenClick (Sender: TObject); var Form: TFormGoodSale; begin try Form: = TFormGoodSale.Create (nil); Form.Close; Form.ShowModal; finally Form.Free; end; end;
When executing a line
Form: = TFormGoodSale.Create (nil);
the form appears as if I called Form.Show; Have to do
Form: = TFormGoodSale.Create (nil); Form.Close; Form.ShowModal;
which is extremely undesirable, because OnShow forms execute an SQL query.
The TFormGoodSale form is inherited from the TRegistryForm form that I created, which saves its settings in the registry. There are several more forms in the project, descendants of TRegistryForm, created programmatically. All of them work without glitches.
What can be advised in such a situation? Maybe someone had similar problems?



Владислав   (2002-02-04 07:55) [1]

Set the form property TFormGoodSale.Visible in the object inspector to False.



Pages: 1 whole branch

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

Top





Memory: 0.54 MB
Time: 0.018 c
1-57103
Maxim
2002-02-02 14:11
2002.02.18
How to refer to the same type of components by their numbers?


1-57123
Landgraph
2002-02-02 22:42
2002.02.18
Array ...


3-57010
olden
2002-01-22 18:10
2002.02.18
whether ADO is buggy, whether ...


1-57093
Lvovich
2002-02-02 09:07
2002.02.18
Modal windows


3-57007
evgen_2001
2002-01-24 12:46
2002.02.18
How to create a table?





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