|
|
function AddMsg()
{
var ctrlman = m_Map.GetCtrlMan();
var uiman = ctrlman.GetUIMan();
var util = m_Map.GetUtility();
// ¸Þ½ÃÁö ¿µ¿ª
stcMsgArea = uiman.CreateUI_StaticText(uiman);
stcMsgArea.SetParent(uiman);
// Left À§Ä¡ ÁöÁ¤
stcMsgArea.SetLeft(10);
// Top À§Ä¡ ÁöÁ¤
stcMsgArea.SetTop(50);
// ³ÐÀÌ ÁöÁ¤
stcMsgArea.SetWidth(450);
// ³ôÀÌ ÁöÁ¤
stcMsgArea.SetHeight(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"), "±¼¸²");
stcMsgArea.SetPen(util.GetConstToValue("PS_SOLID"), 2, util.RGBColor(255, 255, 0));
stcMsgArea.SetBrush(util.GetConstToValue("BS_SOLID"), util.RGBColor(255, 0, 255), 0);
stcMsgArea.SetCaption("À̺¥Æ® 󸮿¡ ´ëÇÑ °á°ú¸¦ ¿©±â¿¡ º¸¿©ÁÝ´Ï´Ù.");
stcMsgArea.SetCanFocus(0);
stcMsgArea.SetCanClick(0);
}
|
|
|
CXCtrlMan ctrlman = m_Map.GetCtrlMan();
CXUIMan uiman = ctrlman.GetUIMan();
CXControlState ctrlstate = ctrlman.GetControlState();
CXSize dpsize = ctrlstate.GetSizeDP();
CXUtility util = m_Map.GetUtility();
long width_px = dpsize.GetCX()/2 - 250;
bPanel = uiman.CreateUI_Panel(uiman);
bPanel.SetParent(uiman);
bPanel.SetUIID(200);
bPanel.SetAlpha(80);
bPanel.SetBound(width_px, dpsize.GetCY()-450, 530, 150);
bPanel.SetCanDrag(1);
bPanel.SetCanClick(1);
bPanel.GetStretch();
bPanel.SetAnchor(util.GetConstToValue(_T("TMUIOBJ_ANCHOR_TOP")));
bPanel.SetPen(util.GetConstToValue(_T("BS_SOLID")), 4, util.RGBColor(17, 168, 78));
bPanel.SetBrush(util.GetConstToValue(_T("BS_SOLID")), util.RGBColor(255, 255, 255), 0);
|
|