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

Function ColorBoxRus

sourcecommon/utils.cpp:1838–1858  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1836}
1837//---------------------------------------------------------------------------
1838void ColorBoxRus(TColorBox * p)
1839{
1840 // TColorBox �� ��������� �� �������� ����� Scaled = true
1841 // �� ������� ������� ������ TColorBox �� ����������, � �����
1842 // ���������� ������� !
1843 // ������� ��� ���������:
1844 int rh = p->Canvas->TextHeight("���");
1845 p->ItemHeight = rh + rh / 2;
1846
1847 for(int i=0; i<p->Items->Count; i++)
1848 {
1849 if( i==0 && p->Items->Strings[i] == "Custom..." )
1850 {
1851 p->Items->Strings[i] = "�����...";
1852 continue;
1853 }
1854 String s = GetColorNameRus((TColor)(int)p->Items->Objects[i]);
1855 if( s.Length() > 0 )
1856 p->Items->Strings[i] = s;
1857 }
1858}
1859//---------------------------------------------------------------------------
1860void MySetLocalTime(TDateTime t)
1861{

Callers

nothing calls this directly

Calls 1

GetColorNameRusFunction · 0.85

Tested by

no test coverage detected