|
TalMap SDK Libary Reference |
XCtrlMan::SetClickNotify |
Áöµµ¸¦ ƯÁ¤ÇÑ ¸¶¿ì½º Ŭ¸¯ À̺¥Æ®¸¦ ¹Þ´Â »óÅ·Π¼³Á¤ÇÕ´Ï´Ù. |
|
|
|
Parameters
|
Type |
»ç¿ëÀÚ ÁöÁ¤ ClickNotify °ª |
|
|
|
|
Return Value
|
°á°ú°ª.
0: ½ÇÆÐ.
1: ¼º°ø.
|
|
|
|
Remarks
|
SetClickNotify ´Â XCtrlMan ÀÇ Method·Î Á¦°øµË´Ï´Ù.
»ç¿ëÀÚ´Â ÀÌ ¸Þ¼Òµå¸¦ ÀÌ¿ëÇÏ¿©, Áöµµ¸¦ ƯÁ¤ÇÑ ¸¶¿ì½º Ŭ¸¯ À̺¥Æ®¸¦ ¹Þ´Â »óÅ·Π¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
ÇØ´ç ¸Þ¼Òµå ½ÇÇàÈÄ Áöµµ¸¦ Ŭ¸¯Çϸé OnClickNotify À̺¥Æ®°¡ ¹ß»ýÇÕ´Ï´Ù.
Right Button, Escape Key¸¦ ´©¸£¸é ¸ðµå°¡ ÃʱâÈ µË´Ï´Ù.
|
|
|
|
Example
|
|
<script language="javascript">
function SetNotiEvnet(Flag)
{
var ctrlman = m_Map.GetCtrlMan();
ctrlman.SetClickNotify(100);
}
</script>
<script language="javascript" for="m_Map" event="OnClickNotify(Type, X, Y)">
if (Type == 100) {
alert("Notify Event");
}
</script>
|
|
|
#include "CXCtrlMan.h"
BEGIN_EVENTSINK_MAP(CSampleDlg, CDialog)
ON_EVENT(CSampleDlg, IDC_TALMAPXCTRL, 9, CSampleDlg::OnClickNotifyTalmapxctrl, VTS_I4 VTS_I4 VTS_I4)
END_EVENTSINK_MAP()
void CSampleDlg::SetNotiEvent()
{
CXCtrlMan ctrlman = m_Map.GetCtrlMan();
// »ç¿ëÀÚ ÁöÁ¤ À̺¥Æ® ¼³Á¤
ctrlman.SetClickNotify(100);
}
void CSampleDlg::OnClickNotifyTalmapxctrl(long Type, long X, long Y)
{
if (Type == 100) {
AfxMessageBox(_T("Notify Event"));
}
}
|
|
|
// Click Notify Event ¹ß»ý
private void SetNotiEvent()
{
m_Map.GetCtrlMan().SetClickNotify(100);
}
// Click Notify Event ÀÀ´ä
private void m_Map_OnClickNotify(object sender, AxTalMapXLib._ITalMapXCtrlEvents_OnClickNotifyEvent e)
{
if (e.type == 100) {
MessageBox.Show("Click Notify Event [" + e.x.ToString() + "/" + e.y.ToString() + "]");
}
}
|
|
|
'// À̺¥Æ® ¹ß»ý
Private Sub SetNotiEvent()
m_Map.GetCtrlMan.SetClickNotify (100)
End Sub
'// À̺¥Æ® ¹ÞÀ½
Private Sub m_Map_OnClickNotify(ByVal nType As Long, ByVal X As Long, ByVal Y As Long)
If nType = 100 Then
MsgBox ("Click Noti Event " & X & "/" & Y)
End If
End Sub
|
|
|
|
See Also
|