// UIButton »ý¼º
function SetHintTest() {
var ctrlman = m_Map.GetCtrlMan();
var uiman = ctrlman.GetUIMan();
var ctrlstate = ctrlman.GetControlState();
var dpsize = ctrlstate.GetSizeDP();
var util = m_Map.GetUtility();
// step 1. À̹ÌÁö¸ÇÀ» »ý¼º
var imageman = ctrlman.GetImageMan();
imageman.SetDefaultPath("http://www.talmap.co.kr/tutorial/");
// step2. UI Button »ý¼º
var btnZoomIn = uiman.CreateUI_Button(uiman);
btnZoomIn.SetParent(uiman);
// ¾ÆÀ̵ð ÁöÁ¤
btnZoomIn.SetUIID(11);
// À§Ä¡ ÁöÁ¤
btnZoomIn.SetBound(4, 20, 47, 45);
// À̹ÌÁö ÁöÁ¤ - 4°³ÀÇ ¿¬¼Ó À̹ÌÁö ¸®½ºÆ® ÁöÁ¤
btnZoomIn.SetImageList("image/btn_zoom_in.png", 47, 45);
btnZoomIn.SetAnchor(util.GetConstToValue("TMUIOBJ_ANCHOR_LEFT") | util.GetConstToValue("TMUIOBJ_ANCHOR_TOP"));
btnZoomIn.SetCanFocus(1);
btnZoomIn.SetCanClick(1);
btnZoomIn.SetBrush(util.GetConstToValue("BS_SOLID"), util.RGBColor(255, 0, 0), 0);
btnZoomIn.SetTransparent(util.GetConstToValue("TMUIOBJ_TRANSPARENT_ALL"));
btnZoomIn.SetCanDrag(1);
// Mouse Over ½Ã Hint Ç¥Ãâ
btnZoomIn.SetShowHint(1);
btnZoomIn.SetHint("ZoomIn Button");
btnZoomIn.AddEventMode(util.GetConstToValue("TMEVENTTYPE_MOUSEDOWN") | util.GetConstToValue("TMEVENTTYPE_MOUSEUP"));
btnZoomIn.SetEvnetMode(1);
}
// UIButton Á¦°Å
function DestroyUI()
{
var obj = m_Map.GetCtrlMan().GetUIMan().GetChildByUIID(11);
if (obj)
{
obj.DestroyUIObj();
}
}