Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 11:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP] WTYPE_STATIC Font "Change"

Discussion on [HELP] WTYPE_STATIC Font "Change" within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
『  』's Avatar
 
elite*gold: 10
Join Date: Aug 2011
Posts: 1,328
Received Thanks: 914
[HELP] WTYPE_STATIC Font "Change"

Hey guys what's upp <.<

I ran into a little Problem today and couldn't solve it by myself.

Well, i created an Applet and there i added a Label which i change via
Source. I tried to change the Font Size and Font Color by declareing
a new Font and then i passed this Font via ->SetFont.

Anyways it does not set the Font....

Things i tried:

All of this is in the "OnDraw" Function of the Applet
Code:
// - Font declared
CD3DFont* xpFont = new CD3DFont( _T("MS Gothic"), 22 );
		xpFont->m_nOutLine = 2;
		xpFont->m_dwColor = 0xffffffff;
		xpFont->m_dwBgColor = D3DCOLOR_ARGB( 255, 0, 0, 0);

// 1
CWndStatic* pWndStaticLbl =  ( CWndStatic* )GetDlgItem( WIDC_xTestx );
CD3DFont* pOld = pWndStaticLbl->GetFont();
pWndStaticLbl->SetFont(xpFont);

// 2
CWndStatic* pWndStaticLbl =  ( CWndStatic* )GetDlgItem( WIDC_xTestx );
pWndStaticLbl->m_pFont = xpFont;

// 3
CWndStatic* pWndStaticLbl =  ( CWndStatic* )GetDlgItem( WIDC_xTestx );
pWndStaticLbl->m_p2DRender->SetFont(xpFont);

// 4
p2DRender->SetFont(xpFont);
I hope someone can help me.

LG
『  』 is offline  
Reply




All times are GMT +2. The time now is 11:16.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.