|
TalMap SDK Libary Reference |
XIndexMap::SetIndexMapSize |
³ÐÀÌ °ª°ú ³ôÀÌ °ªÀ¸·Î Index Map ÀÇ Å©±â¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
|
|
|
Parameters
|
|
Return Value
|
|
Remarks
|
SetIndexMapSize ´Â XIndexMap ÀÇ Method·Î Á¦°øµË´Ï´Ù.
»ç¿ëÀÚ´Â ÀÌ ¸Þ¼Òµå¸¦ ÀÌ¿ëÇÏ¿© ³ÐÀÌ °ª°ú ³ôÀÌ °ªÀ¸·Î À妽º ¸ÊÀÇ Å©±â¸¦ ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
|
|
|
|
Example
|
|
var ctrl = m_Map.GetCtrlMan();
var ctrlstate = ctrl.GetControlState();
var Left = 200;
var Top = 200;
var size = ctrlstate.GetSizeDP();
var indexmap = ctrl.GetIndexMap();
if (!indexmap.IsIndexMapVisible()) {
if (indexmap.GetIndexMapLeft() == -1000 || indexmap.GetIndexMapTop() == -1000) {
indexmap.SetIndexMapLeft(size._CX - indexmap.GetIndexMapWidth() - 10);
indexmap.SetIndexMapTop(10);
}
if (indexmap.IsMinimized()) indexmap.SetNormal();
indexmap.ShowIndexMap();
indexmap.SetIndexMapLeft(Left);
indexmap.SetIndexMapTop(Top);
indexmap.SetIndexMapSize(160,160);
}
|
|
|
CXControlState ctrlstate = ctrlman.GetControlState();
CXSize size = ctrlstate.GetSizeDP();
int height = 160;
CXIndexMap indexmap = ctrlman.GetIndexMap();
if(!indexmap.IsIndexMapVisible()) {
if(indexmap.GetIndexMapLeft() == -1000 || indexmap.GetIndexMapTop() == -1000) {
indexmap.SetIndexMapLeft(size.GetCX() - indexmap.GetIndexMapWidth() - 10);
indexmap.SetIndexMapTop(10);
}
if(indexmap.IsMinimized()) indexmap.SetNormal();
indexmap.ShowIndexMap();
indexmap.SetIndexMapTop(height);
indexmap.SetIndexMapLeft(0);
indexmap.SetIndexMapSize(160,160);
}
|
|
|
|
See Also
|