Skip to main content
GameDev.net gamedev.net
🔒 Locked

Problems with DX9c framework and set fonts

Started by tiger54 Nov 24, 2004 at 10:48 AM 0 replies 400+ views
Original Post
tiger54
tiger54
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.