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

Down

Shape minimization Find similar branches


Марина   (2001-12-29 09:05) [0]

Tell me, please, how to make the form immediately start to be minimized and minimized to an icon in SysTray. Thank you in advance, and I ask you to forgive you for the question to the owners and guests of the site.



Андрей Сенченко   (2001-12-29 13:25) [1]

Taken from the FAQ
<c>
const WM_MINIMALIZE = WM_USER + 1;

begin
Application.OnMinimize: = OnAppMinimize;
with FIconData do
begin
cbSize: = SizeOf (FIconData);
Wnd: = Self.Handle;
uFlags: = NIF_MESSAGE or NIF_ICON or NIF_TIP;
hIcon: = Application.Icon.Handle;
uCallbackMessage: = WM_MINIMALIZE;
szTip: = "Copying SHOPS files";
end;
Shell_NotifyIcon (NIM_ADD, @FIconData);
end;
</ c>



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

szTip: = "Copying SHOPS files"; / code> This is definitely my name. Here you write the inscription, which should appear when the mouse hovers on the icon in Tray;



Юрий Зотов   (2001-12-29 13:40) [3]

1. Not enough one trifle:
Application.ShowMainForm: = False;

2. Line
Application.OnMinimize: = OnAppMinimize;
not required. Depends on the task.

3. Put all this code in the main form's OnCreate handler.



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

> Yuri Zotov © (29.12.01 13: 40)

And can N + 1 counter questions?

1. I decided through
Form1.WindowsTate: = wsMinimized
This is if you need to immediately fold. And if not, then in my opinion in MainForm you can place everything that is necessary and normally display it. Or am I wrong?

2. ...

3. Why not .OnActivate? (depending on the task - this can also be useful)



Pages: 1 whole branch

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

Top





Memory: 0.55 MB
Time: 0.014 c
1-52553
Flagman
2001-12-28 12:14
2002.01.17
Hide cursor in TRichEdit


1-52531
Trynkin Sergey
2001-12-27 16:24
2002.01.17
Again about the mouse cursor


4-52687
erik
2001-11-15 23:35
2002.01.17
Wait process


1-52591
Zabrodin_Lex
2001-12-27 12:37
2002.01.17
problem with reset () in OBJECT method


4-52679
Undert
2001-11-15 19:02
2002.01.17
Again the 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 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