void CMainDialog::OnCbnEditchangeComboHeight()
{
  CString str;

  m_combo_height.GetWindowText(str);

  m_height = _ttoi(str);

  if (m_height <= 0)
    m_height = 1;

  SetNewFont();
}
Beispiel #2
0
	FStatRenderGlobals() :
		AfterNameColumnOffset(0),
		InterColumnOffset(0),
		StatColor(0.f,1.f,0.f),
		HeadingColor(1.f,0.2f,0.f),
		GroupColor(FLinearColor::White),
		BackgroundColor(0.05f, 0.05f, 0.05f, 0.90f),	// dark gray mostly occluding the background
		StatFont(nullptr),
		StatFontType(EStatFontTypes::NumFonts),
		bNeedRefresh(true)
	{
		SetNewFont( EStatFontTypes::Small );
	}
void CMainDialog::OnLbnSelchangeFontsList()
{
  CString str;
  int sel, len;

  sel = m_fonts_list.GetCurSel();
  len = m_fonts_list.GetTextLen(sel);

  m_fonts_list.GetText(sel, str.GetBuffer(len));
  str.ReleaseBuffer();

  m_facename = str;

  SetNewFont();

  #ifdef _DEBUG
  {
    CString s;
    s.Format(_T("item %d: %s\n"), sel, str.GetBuffer());
    afxDump << s;
  }
  #endif
}