博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Using SYSTEM.MOUSE_ITEM In Oracle Forms
阅读量:5992 次
发布时间:2019-06-20

本文共 1394 字,大约阅读时间需要 4 分钟。

If the mouse is in an item, SYSTEM.MOUSE_ITEM represents the name of that item as a CHAR value.
For example, if the mouse is in Item1 in Block2, the value for SYSTEM.MOUSE_ITEM is :BLOCK2.ITEM1.

SYSTEM.MOUSE_ITEM is NULL if:
·  the mouse is not in an item
·  the operator presses the left mouse button, then moves the mouse
·  the platform is not a GUI platform

SYSTEM.MOUSE_ITEM examples
/* 
Example: Dynamically repositions an item if:
1) the operator clicks mouse button 2 on an item and
2) the operator subsequently clicks mouse button 2 on an area of the canvas that is not directly on top of another item.
*/
DECLARE
item_to_move VARCHAR(50);
the_button_pressed VARCHAR(50);
target_x_position NUMBER(3);
target_y_position NUMBER(3);
the_button_pressed VARCHAR(1);
BEGIN
/* Get the name of the item that was clicked.
*/
item_to_move := :System.Mouse_Item;
the_button_pressed := :System.Mouse_Button_Pressed;
/*
If the mouse was clicked on an area of a canvas that is not directly on top of another item, move the item to the new mouse location.
*/
IF item_to_move IS NOT NULL AND the_button_pressed = ’2’
THEN
target_x_position := To_Number(:System.Mouse_X_Pos);
target_y_position := To_Number(:System.Mouse_Y_Pos);
Set_Item_Property(item_to_move,position,
target_x_position,target_y_position);
target_x_position := NULL;
target_y_position := NULL;
item_to_move := NULL;
END IF;
END;

See also:



转载地址:http://grtlx.baihongyu.com/

你可能感兴趣的文章
Ajax学习笔记
查看>>
Java 内存区域和GC机制
查看>>
三年项目管理,三个阶段
查看>>
迁向云端
查看>>
HDU 4639 Hehe
查看>>
cocos2dx游戏开发——微信打飞机学习笔记(一)——开发准备
查看>>
打靶算法分析
查看>>
WCF从理论到实践(16):操作重载(带视频+ppt+源码)
查看>>
CSharp tar类型文件压缩与解压
查看>>
python中文注释及输出出错
查看>>
近日学习Cache,搜集到的一个Demo下载[不断修改、讨论]
查看>>
C#调用C++写的Dll时的运行时错误解决
查看>>
Ubuntu下如何进入终端命令行
查看>>
步步为营UML建模系列五、时序图(Squence diagram)
查看>>
【转】iOS平台安装包介绍
查看>>
【转载】systemctl命令完全指南
查看>>
GIS工具-shp浏览器
查看>>
.NET Core微服务之基于Steeltoe使用Hystrix熔断保护与监控
查看>>
软件调试的艺术(Linux Unix平台软件调试权威著作)
查看>>
知道力——彻底超越执行力的25条职场新思维
查看>>