--------------------------------------------------------------------------- State: 0-ok 1-warning 2-error
| 811 | //--------------------------------------------------------------------------- |
| 812 | // State: 0-ok 1-warning 2-error |
| 813 | void __fastcall TMainForm::TrayChangeIcon(int State) |
| 814 | { |
| 815 | if( ! TrayIcon->Visible ) |
| 816 | { |
| 817 | // Without start & stop Animate show application icon in the tray ! |
| 818 | TrayIcon->Animate = false; |
| 819 | TrayIcon->Visible = true; |
| 820 | } |
| 821 | |
| 822 | if( TrayIcon->IconIndex != State ) |
| 823 | TrayIcon->IconIndex = State; |
| 824 | |
| 825 | String tip = GetFullAppName(); |
| 826 | |
| 827 | if( ! SameText(TrayIcon->Hint, tip) ) |
| 828 | TrayIcon->Hint = tip; |
| 829 | } |
| 830 | //--------------------------------------------------------------------------- |
| 831 | /* State: 0-ok 1-warning 2-error |
| 832 | void __fastcall TMainForm::TrayShowBallon(AnsiString Title, AnsiString Text, int State) |
nothing calls this directly
no test coverage detected