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

Method UpdateDislpayInfo

source/main.cpp:391–411  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

389}
390//---------------------------------------------------------------------------
391void __fastcall TMainForm::UpdateDislpayInfo(void)
392{
393 String s;
394 if( ViewFileMode )
395 s = ViewFileName + " ";
396 // If the text file is not completely read
397 if( aMoreLines->Enabled )
398 s += "[the last " + GetBytesStringEng(ReadedSize) +
399 " of the " + GetBytesStringEng(FileSize) + "]";
400 if( FileRotationNumber > 0 )
401 s += String(" ") + ExtractFileName(fFile);
402
403 ViewFileInfoLabel->Caption = s;
404
405 int lc = MessList->Count;
406 if( TotalLines != lc )
407 GroupBox2->Caption = "Displaying " + IntToStr(lc) + " messages of " +
408 IntToStr(TotalLines);
409 else
410 GroupBox2->Caption = "Displaying " + IntToStr(lc) + " messages";
411}
412//---------------------------------------------------------------------------
413void __fastcall TMainForm::Clear(void)
414{

Callers

nothing calls this directly

Calls 1

GetBytesStringEngFunction · 0.85

Tested by

no test coverage detected