|
TalMap SDK Libary Reference |
XIndexMap::SetIndexMapTop |
À妽º ¸ÊÀÇ Á»ó´Ü Y ÁÂÇ¥ °ªÀ» ¼³Á¤ÇÕ´Ï´Ù. |
|
|
|
Parameters
|
|
Return Value
|
°á°ú°ª.
0: ½ÇÆÐ.
1: ¼º°ø.
|
|
|
|
Remarks
|
SetIndexMapTop ´Â XIndexMap ÀÇ Method·Î Á¦°øµË´Ï´Ù.
»ç¿ëÀÚ´Â ÀÌ ¸Þ¼Òµå¸¦ ÀÌ¿ëÇÏ¿© À妽º ¸ÊÀÇ Á»ó´Ü Y ÁÂÇ¥ °ªÀ» ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
|
|
|
|
Example
|
|
var ctrl = m_Map.GetCtrlMan();
var ctrlstate = ctrl.GetControlState();
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.SetIndexMapTop(Top);
indexmap.SetIndexMapLeft(0);
}
|
|
|
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);
}
|
|
|
|
See Also
|