|
| TalMap SDK Libary Reference |
| XUIObj::SetBound |
| UI Object 를 경계(Bound)합니다. |
|
|
|
|
Parameters
| |
| Left |
| 좌상단 X 좌표. |
| Top |
| 좌상단 Y 좌표. |
| Width |
| 넓이 |
| Height |
| 높이 |
|
|
|
|
Return Value
|
|
Remarks
| |
SetBound 는 XUIObj 의 Method로 제공됩니다.
사용자는 이 메소드를 이용하여 생성한 UI Object 의 위치와 크기를 설정할 수 있습니다.
|
|
|
|
Example
| |
|
|
function AddMsg()
{
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, 10, 50, 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.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);
|
|
|
|
See Also
|
|