Property

Method

Event

 

 

OnCustomMenu

Ãʱâ ȯ°æ ÆÄÀÏ¿¡¼­ [UI]AddMenu ¶Ç´Â AddPopupMenu¿¡ ÀÇÇØ¼­ µî·ÏµÈ ¸Þ´º°¡ ¼±ÅõǾúÀ» ¶§¿¡ À̺¥Æ®¸¦ ¹ßÇàÇÕ´Ï´Ù.

Syntax

    void OnCustomMenu(
    long menuid
    );

Parameters

menuid

[in] ¼±ÅÃµÈ ¸Þ´ºÀÇ ½Äº° ¹øÈ£(1-100)¸¦ Ãâ·ÂÇÕ´Ï´Ù.

Sample Codes

VBScript

function wec_OnCustomMenu(menuid)
dim object
   set object = document.editForm
   if menuid=1 then
    object.wec.InsertValue 1, "Selected MenuID : 1"
      object.wec.DoCommand "br"
   elseif menuid=2 then
    object.wec.InsertValue 1, "Selected MenuID : 2"
      object.wec.DoCommand "br"
   end if
end function