MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / TrayChangeIcon

Method TrayChangeIcon

source/main.cpp:813–829  ·  view source on GitHub ↗

--------------------------------------------------------------------------- State: 0-ok 1-warning 2-error

Source from the content-addressed store, hash-verified

811//---------------------------------------------------------------------------
812// State: 0-ok 1-warning 2-error
813void __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
832void __fastcall TMainForm::TrayShowBallon(AnsiString Title, AnsiString Text, int State)

Callers

nothing calls this directly

Calls 1

GetFullAppNameFunction · 0.85

Tested by

no test coverage detected