|
TalMap SDK Libary Reference |
XUIObj::SetFont |
UI Object ¿¡ ÆùÆ®(Font)¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
|
XUIObj::SetFont
void SetFont(LONG Height, BYTE Style, BSTR Name, BYTE Quality);
|
|
|
Parameters
|
Height |
ÆùÆ®ÀÇ ³ôÀÌ. ³í¸®Àû ´ÜÀ§. |
Style |
ÆùÆ®ÀÇ ½ºÅ¸ÀÏ
¼³Á¤°ª : (XUtility.GetConstToValue("String") ¿¡ ¼³Á¤ ÇÒ °ª)
TM_FONT_STYLE_NORMAL
TM_FONT_STYLE_BOLD
TM_FONT_STYLE_ITALIC
TM_FONT_STYLE_UNDERLINE
TM_FONT_STYLE_STRIKEOUT
|
Name |
ÆùÆ®ÀÇ È°ÀÚ À̸§À» ÁöÁ¤ÇÏ´Â ½ºÆ®¸µ ¹®ÀÚ¿. |
Quality |
ÆùÆ®ÀÇ Ç°Áú.
0 : DEFAULT QUALITY
1 : DRAFT QUALITY
2 : PROOF QUALITY
|
|
|
|
|
Return Value
|
|
Remarks
|
SetFont ´Â XUIObj ÀÇ Method·Î Á¦°øµË´Ï´Ù.
»ç¿ëÀÚ´Â ÀÌ ¸Þ¼Òµå¸¦ ÀÌ¿ëÇÏ¿© »ý¼ºÇÑ Object ¿¡ ¿øÇÏ´Â Font¸¦ ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
|
|
|
|
Example
|
|
var ctrlman = m_Map.GetCtrlMan();
var uiman = ctrlman.GetUIMan();
var util = m_Map.GetUtility();
// ¸Þ½ÃÁö ¿µ¿ª
stcMsgArea = uiman.CreateUI_StaticText(uiman);
stcMsgArea.SetParent(uiman);
stcMsgArea.SetBound(4, 4, 450, 50);
stcMsgArea.SetAnchor(util.GetConstToValue("TMUIOBJ_ANCHOR_LEFT") | util.GetConstToValue("TMUIOBJ_ANCHOR_TOP"));
stcMsgArea.SetBackColor(util.RGBColor(255, 255, 255));
stcMsgArea.SetFont(12, util.GetConstToValue("TM_FONT_STYLE_BOLD"), "±¼¸²", 0);
stcMsgArea.SetCaption("À̺¥Æ® 󸮿¡ ´ëÇÑ °á°ú¸¦ ¿©±â¿¡ º¸¿©ÁÝ´Ï´Ù.");
stcMsgArea.SetCanFocus(0);
stcMsgArea.SetCanClick(0);
|
|
|
#include "CXCtrlMan.h"
#include "CXUIMan.h"
#include "CXUIStaticText.h"
#include "CXUtility.h"
CXCtrlMan ctrlman = m_Map.GetCtrlMan();
CXUIMan uiman = ctrlman.GetUIMan();
CXUIStaticText stcMsgArea = uiman.CreateUI_StaticText(uiman);
CXUtility util = m_Map.GetUtility();
stcMsgArea.SetParent(uiman);
stcMsgArea.SetBound(4, 4, 450, 50);
stcMsgArea.SetAnchor(util.GetConstToValue(_T("TMUIOBJ_ANCHOR_LEFT")) | util.GetConstToValue(_T("TMUIOBJ_ANCHOR_TOP")));
stcMsgArea.SetBackColor(util.RGBColor(255, 255, 255));
stcMsgArea.SetFont(12, util.GetConstToValue(_T("TM_FONT_STYLE_BOLD")), _T("±¼¸²"), 2);
stcMsgArea.SetCaption(_T("À̺¥Æ® 󸮿¡ ´ëÇÑ °á°ú¸¦ ¿©±â¿¡ º¸¿©ÁÝ´Ï´Ù."));
stcMsgArea.SetCanFocus(0);
stcMsgArea.SetCanClick(0);
|
|
|
|
See Also
|
|