Base aspect for all planar diagram types.<q ref="core.svg:GmlDrawing">GmlDrawing</q>(c) SAP AG 2003-2006. All rights reserved. Fires when the user triggers a paste action.The element to be pasted.The containing Unit.The full list of currently selected objects.Set this flag to <code>true</code> to cancel the event. Fires when the user right-connects two shapes. Use this event to customize the connection's context menu.The element that owns the target plug.The source plug.The target plug.The pointer position, in logical units relative to the diagram origin.The context menu definition object. Use the MENU_BAR methods to customize the menu items.DEPRECATED: Use this parameter to set a callback function that will be invoked when a menu item is selected. If omitted, then the SIGNAL macro will be invoked.Set this flag to <code>true</code> to cancel the event. Fires when the user right-clicks the diagram background. Use this event to customize the diagram's context menu.The unit base object of the diagram.The pointer position, in logical units relative to the diagram origin.The context menu definition object. Use the MENU_BAR methods to customize the menu items.DEPRECATED: Use this parameter to set a callback function that will be invoked when a menu item is selected. If omitted, then the SIGNAL macro will be invoked.Set this flag to <code>true</code> to cancel the event. Fires when the user enters the drawing board.The containing Unit.The drag and drop data object.Set this flag to <code>true</code> to cancel the event. Fires when the user triggers a drawing-related action.The base object of the drawing element that was activated.The action code (SVG_ACTIVATE, SVG_CONNECT, or SVG_ATTACH). Fires when the user drops a shape sprite on the diagram. Use this event to customize the drag and drop context menu.The base object of the graphic element on which the sprite has been dropped.The drag and drop data object.The pointer position, in logical units relative to the diagram origin.The context menu definition object. Use the MENU_BAR methods to customize the menu items.DEPRECATED: Use this parameter to set a callback function that will be invoked when a menu item is selected. If omitted, then the SIGNAL macro will be invoked.Set this flag to <code>true</code> to cancel the event.<p> The default drop behavior will be cancelled if either the <code>cancel</code> parameter is set to <code>true,</code> or the <code>menu</code> parameter is populated with menu items. In the latter case, the menu will be opened instead of the default drop behavior. </p><p> The following is a sample listener for the <code>onDropMenu</code> event: </p> <pre> listen onDropMenu var diag=object, cp=(pos.x)+' '+(pos.y); menu.append({signal:'FormView',callback:quickCreate , text:'Add Form', icon:'HEX23URL[ur<code>skin:symbols.formview16.gif]'});</code> menu.append({signal:'GridView',callback:quickCreate , text:'Add Grid', icon:'HEX23URL[ur<code>skin:symbols.gridview16.gif]'});</code> menu.append({signal:'ListView',callback:quickCreate , text:'Add List', icon:'HEX23URL[ur<code>skin:symbols.listview16.gif]'});</code> menu.append(); menu.append({signal:'cancel', text:'Cancel'}); function quickCreate(signal) { if (signal == 'cancel') return; diag.createElement('com.sap.vcsample:'+signal, 'elements', {'HEX40g:pos':cp}); } end </pre> Fires when the user creates a dangling connection (i.e., connects a shape to nothing). Use this event to customize the quick-connect context menu.The element that owns the source plug.The source plug.The pointer position, in logical units relative to the diagram origin.The context menu definition object. Use the MENU_BAR methods to customize the menu items.DEPRECATED: Use this parameter to set a callback function that will be invoked when a menu item is selected. If omitted, then the SIGNAL macro will be invoked.Set this flag to <code>true</code> to cancel the event.<p> The following is a sample listener for the <code>onQuickConnectMenu</code> event: </p> <pre> listen onQuickConnectMenu for var unit=object.unit, cp= pos.x + ' ' + pos.y, srcplug=source; menu.append({signal:'FormView', callback: quickConnect , text:'Add Form', icon:'HEX23URL[ur<code>skin:symbols.formview16.gif]'});</code> menu.append({signal:'GridView', callback: quickConnect , text:'Add Grid', icon:'HEX23URL[ur<code>skin:symbols.gridview16.gif]'});</code> menu.append({signal:'GridView', callback: quickConnect , text:'Add List', icon:'HEX23URL[ur<code>skin:symbols.listview16.gif]'});</code> menu.append(); menu.append({signal:'cancel',callback: quickConnect, text:'Cancel'}); function quickConnect(signal) { if (signal == 'cancel') return; BEGIN(); var trgelem, trgplug; if (srcplug.dir == ) { trgelem = unit.createElement('com.sap.vcsample:'+signal,'elements', {'':(cp.x-40)+' '+(cp.y+10)}); trgplug = srcplug; srcplug = trgelem.getSinglePlug(); trgelem = trgplug.parent; } else { trgelem = unit.createElement('com.sap.vcsample:'+signal ,'elements' , {'':(cp.x+40)+' '+(cp.y+10)}); trgplug = trgelem.getSinglePlug(); } var linktype = trgelem.canConnect(srcplug, trgplug); var A = SPLIT(TRIM(linktype)); if (!A[0]) { ROLLBACK(); return; } unit.createElement(A[0], 'elements', {source:srcplug, target:trgplug}); COMMIT(); } end </pre> Fires when the user right-drags an empty region on the diagram. Use this event to customize the quick-create context menu.The containing diagram.The region bounding box, in logical units relative to the diagram origin.The context menu definition object. Use the MENU_BAR methods to customize the menu items.DEPRECATED: Use this parameter to set a callback function that will be invoked when a menu item is selected. If omitted, then the SIGNAL macro will be invoked.Set this flag to <code>true</code> to cancel the event.<p> The following is a sample listener for the <code>onQuickCreateMenu</code> event: </p> <pre> listen onQuickCreateMenu var diag=object, cp=(rect.x+rect.w/2)+' '+(rect.y+rect.h/2); menu.append({signal:'FormView', callback:quickCreate , text:'Add Form', icon:'HEX23URL[ur<code>skin:symbols.formview16.gif]'});</code> menu.append({signal:'GridView', callback:quickCreate ,text:'Add Grid', icon:'HEX23URL[ur<code>skin:symbols.gridview16.gif]'});</code> menu.append({signal:'ListView', callback:quickCreate ,text:'Add List', icon:'HEX23URL[ur<code>skin:symbols.listview16.gif]'});</code> menu.append(); menu.append({signal:'cancel', callback:quickCreate ,text:'Cancel'}); function quickCreate(signal) { if (signal == 'cancel') return; diag.createElement('com.sap.vcsample:'+signal, 'elements', {'HEX40g:pos':cp}); } end </pre> Fires when the user right-drags a non-empty region on the diagram. Use this event to customize the region's context menu.The containing diagram.The full list of objects encompassed by the region.The region bounding box, in logical units relative to the diagram origin.The context menu definition object. Use the MENU_BAR methods to customize the menu items.DEPRECATED: Use this parameter to set a callback function that will be invoked when a menu item is selected. If omitted, then the SIGNAL macro will be invoked.Set this flag to <code>true</code> to cancel the event. Fires when the user right-clicks a shape. Use this event to customize the shape's context menu.The base object of the shape in focus.The full list of currently selected objects.The pointer position, in logical units relative to the diagram origin.The context menu definition object. Use the MENU_BAR methods to customize the menu items.DEPRECATED: Use this parameter to set a callback function that will be invoked when a menu item is selected. If omitted, then the SIGNAL macro will be invoked.Set this flag to <code>true</code> to cancel the event.