PC SOFT

WINDEV的在线文档

文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Adds a Widget into a Dashboard control during a Drag and Drop. This Drag and Drop can be performed from an Image control, a List Box control, a Looper control, ...

Caution: The Widget is added for the current session. To store the added Widget, you must use TDB添加Widget.

例子
// -- Initialize IMG_WIDGET_Calendar

// The image is source of Drag and Drop
我自己..鼠标拖放源=鼠标拖放.程序

// Defines a procedure for "begin drag"
// This procedure is using DnDCacheDashElement to define the widget to drop
鼠标拖放事件onDndBegin,我自己,鼠标拖放.开始拖动


// -----------------------------------------------------

过程onDndBegin()

// Define the widget to drop according to the source control
根据鼠标拖放.源控件
// Indicates that the drop on the Dashboard control must add the "Clock" widget
// by using the "IW_Widget_Clock" internal window
情况IMG_Widget_Calendar..名称
鼠标拖放数据仪表盘元素"IW_Widget_Calendar""Clock"

其他情况
错误"Only the IMG_Widget_Calendar image is allowed for Drag and Drop"

结束

语法
鼠标拖放数据仪表盘元素(<Widget Name> , <Caption>)
<Widget Name>: Character string (with quotes)
Name of the internal window (or Widget) defined as target of Drag and Drop.
<Caption>: Character string (with quotes)
Caption of the added Widget.

注意
  • This function must be used in the procedure associated with the "Begin drag" event.
  • This function initializes the Drag and Drop information required to add the element into the Dashboard control.
  • The Dashboard control must be defined as target of Drag and Drop (..鼠标拖放目标).

组件
WinDev wd200obj.dll