Jump to content
  • Advertisement
Sign in to follow this  

Problems with DX9c framework and set fonts

This topic is 4954 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I want to use CDXUTDialog to show a listbox.
	m_pDialog->AddListBox(DIALOG_LIST, 50, 50, 700, 600);
	m_pDialog->GetListBox(DIALOG_LIST)->SetTextColor(D3DCOLOR_ARGB(0xBB, 0x44, 0x44, 0xFF));
	m_pDialog->GetListBox(DIALOG_LIST)->AddItem(L"New User", NULL);
	m_pDialog->GetListBox(DIALOG_LIST)->AddItem(L"New User2", NULL);
	m_pDialog->GetListBox(DIALOG_LIST)->AddItem(L"New User3", NULL);
	m_pDialog->GetListBox(DIALOG_LIST)->AddItem(L"New User4", NULL);
But if I add this code:
	m_pDialog->SetFont(DIALOG_FONT, L"Arial", 28, 5);
The font is always the same... How can I change the font of all items? Thank really much for any good idea :D

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!