JPH10143348A - Mouse event processing method, and gui part - Google Patents

Mouse event processing method, and gui part

Info

Publication number
JPH10143348A
JPH10143348A JP8295990A JP29599096A JPH10143348A JP H10143348 A JPH10143348 A JP H10143348A JP 8295990 A JP8295990 A JP 8295990A JP 29599096 A JP29599096 A JP 29599096A JP H10143348 A JPH10143348 A JP H10143348A
Authority
JP
Japan
Prior art keywords
gui
mouse
event
window
gui component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8295990A
Other languages
Japanese (ja)
Inventor
Tetsuya Tsukui
哲也 津久井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP8295990A priority Critical patent/JPH10143348A/en
Publication of JPH10143348A publication Critical patent/JPH10143348A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

PROBLEM TO BE SOLVED: To avoid to select GUI(graphical user interface) of a window with a mouse because mouse event acquisition areas are limited to be rectanglar and system resource is consumed in a large amount when GUI parts of the window are selected by using a mouse. SOLUTION: When a window 2 acquired an occurrence of an even of a mouse 1, the window examines whether a mouse point includes its coordinate in an even acquisition area of GUI parts 3 about all the GUI parts the window has and when a GUI part in which the mouse point is included exists, the window activates an even processing method that is owned by the GUI part. The window has 'list' which becomes a possession form that has an order of GUI parts and selects a GUI part with the order of the list.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータにお
けるユーザからのコマンド入力をマウスを使って画面上
のアイコンやメニュー項目画像のGUI部品の選択で行
うためのマウスイベント処理方法、並びにGUI部品に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a mouse event processing method for inputting a command from a user in a computer by using a mouse to select a GUI component of an icon or menu item image on a screen, and a GUI component.

【0002】[0002]

【従来の技術】MicrosoftWindows等の
OS上で動くアプリケーションにおいては、ユーザから
のコマンド入力をマウスでGUI部品を選択するマウス
イベントで対応するインタフェースを用意している。
2. Description of the Related Art In an application such as Microsoft Windows, which runs on an OS, an interface corresponding to a command input from a user by a mouse event for selecting a GUI component with a mouse is prepared.

【0003】このときのGUI部品はウインドウを単位
として処理し、OSが標準でもっているボタンなどのG
UI部品は、ウインドウの一種として実装されている。
そして、マウスイベント取得領域は、矩形に限られる。
At this time, the GUI parts are processed in units of windows, and the OS has standard G
UI components are implemented as a type of window.
The mouse event acquisition area is limited to a rectangle.

【0004】このマウスイベント取得領域は、その位置
や大きさは、例えば、上辺と下辺のy座標及び左辺と右
辺のx座標で決定される。また、矩形の1つの頂点座標
(左上隅)とx,y方向の辺の長さで決定される。
[0004] The position and size of the mouse event acquisition area are determined by, for example, the y coordinate of the upper side and the lower side and the x coordinate of the left side and the right side. Also, it is determined by the coordinates of one vertex (upper left corner) of the rectangle and the lengths of the sides in the x and y directions.

【0005】[0005]

【発明が解決しようとする課題】従来のGUI部品は、
マウスイベント取得領域が矩形に限られるため、例えば
配線図のような矩形にならないマウスイベント取得領域
を持つものを使用できない。
The conventional GUI parts are:
Since the mouse event acquisition area is limited to a rectangle, an area having a mouse event acquisition area that does not become rectangular, such as a wiring diagram, cannot be used.

【0006】例えば、図3に示すように、折れ曲がった
線AやBをそれぞれGUI部品とすると、破線の矩形で
示すマウスイベント取得領域が互いに重なっているとき
にはa1点で線Aを選択したつもりが、a1点が線Bのマ
ウスイベント取得領域になって線Bを選択してしまうこ
とになる。
[0006] For example, as shown in FIG. 3, the bent line A or B to the respective GUI components, going to select a line A at one point a when the mouse event acquisition region indicated by a broken line rectangle overlap each other However, the point a 1 becomes the mouse event acquisition area of the line B, and the line B is selected.

【0007】また、GUI部品を全てウインドウとして
実現することは、システム資源の大量消費につながる。
Further, realizing all GUI parts as windows leads to large consumption of system resources.

【0008】本発明の目的は、GUI部品を自由な形状
にしながらマウスイベント取得領域の重なりにも適切な
選択ができるマウスイベント処理方法を提供することに
ある。
An object of the present invention is to provide a mouse event processing method capable of appropriately selecting a mouse event acquisition area while making a GUI component a free shape.

【0009】次に、配線図のようなものをGUI部品と
して使いたい場合、従来の矩形的位置表現しかできない
GUI部品では、1本1本の線分は表しにくく、使い勝
手の悪いものであった。
Next, when it is desired to use a wiring diagram as a GUI component, a conventional GUI component that can only represent a rectangular position is difficult to represent each line segment, and is inconvenient. .

【0010】例えば、図4の(a)に示すように、矩形
に限るGUI部品の枠組み(破線)で1本の線分(実
線)を表すと、矩形で線分を表すことになる。また、同
図の(b)に示すように、線分の一方の端点のみを移動
させたい場合でも矩形そのもののサイズを変更する必要
がある。
For example, as shown in FIG. 4A, if one line segment (solid line) is represented by a GUI component frame (broken line) limited to a rectangle, the line segment is represented by a rectangle. Further, as shown in FIG. 3B, even if it is desired to move only one end point of the line segment, it is necessary to change the size of the rectangle itself.

【0011】本発明の他の目的は、線的構造を持たせな
がら操作を容易にするGUI部品を提供することにあ
る。
Another object of the present invention is to provide a GUI component which has a linear structure and facilitates operation.

【0012】[0012]

【課題を解決するための手段】本発明は、コンピュータ
におけるユーザからのコマンド入力をマウスを使って画
面上のGUI部品の選択で行うにおいて、オブジェクト
指向パラダイムを持つOSを搭載したコンピュータには
GUI部品の操作に関連するメッセージクラスを継承さ
せたマウスイベント処理クラスを用意し、このクラスの
メソッドにはGUI部品へのイベント分配機構を実装
し、このイベント分配機構はマウスイベントの発生を取
得したときにマウスポイントがGUI部品のイベント取
得領域に含まれているかどうかをGUI部品すべてにつ
いて調べGUI部品がある場合にイベント処理メソッド
を起動し、前記イベント取得領域に含まれるGUI部品
が複数になるときはGUI部品のイベント取得領域の重
なりの順番になるリストにしたがってGUI部品を選択
することを特徴とする。
SUMMARY OF THE INVENTION The present invention relates to a method for inputting a command from a user in a computer by selecting a GUI component on a screen using a mouse. Prepare a mouse event processing class that inherits the message class related to the operation of the above, implement the event distribution mechanism to the GUI parts in the method of this class, this event distribution mechanism It is checked whether or not the mouse point is included in the event acquisition area of the GUI component for all the GUI components, and if there is a GUI component, the event processing method is started. The order in which the event acquisition areas of the parts overlap And selects the GUI parts in accordance with the door.

【0013】また、本発明は、コンピュータにおけるユ
ーザからのコマンド入力をマウスイベントとして受け付
けるためのGUI部品において、前記GUI部品は、図
形中の1本の線分を特性線とし、この特性線の始点座標
と終点座標の2つの端点で位置表現し、前記特性線を中
心にして移動や回転の操作を行うことを特徴とする。
According to the present invention, in a GUI component for receiving a command input from a user in a computer as a mouse event, the GUI component uses a single line segment in a graphic as a characteristic line, and a starting point of the characteristic line. It is characterized in that a position is expressed by two end points of coordinates and end point coordinates, and a movement or rotation operation is performed around the characteristic line.

【0014】[0014]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

(第1の実施形態)本発明の実施形態として、オブジェ
クト指向パラダイムを持つMicrosoft Vis
ual C++を使った場合で説明する。
(First Embodiment) As an embodiment of the present invention, Microsoft Vis with an object-oriented paradigm
The case where ua C ++ is used will be described.

【0015】Windowsで扱うメッセージとして、
ウインドウ自身の操作に関連するメッセージは、CWn
dクラスから派生されたクラスCView,CDial
og等で処理される。
As a message handled by Windows,
The message related to the operation of the window itself is CWn
Class CView, CDial derived from class d
og or the like.

【0016】本実施形態では、ウインドウのクラスCV
iew,CDialog等を継承させたマウスイベント
処理クラスを用意し、このクラスのメソッド中で、その
ウインドウが持つGUI部品へのイベント分配機構を実
装する。
In this embodiment, the class CV of the window
A mouse event processing class that inherits the view, CDialog, and the like is prepared, and in the method of this class, an event distribution mechanism to the GUI component of the window is implemented.

【0017】また、GUI部品には領域の属性を持たせ
る。これは矩形に限らず、例えば領域クラスCRgnで
実現する。この領域はGUI部品のイベント取得領域を
表すもので、配線図などのようなベクトル図形もGUI
部品として扱える自由な形状のイベント取得領域を設定
可能にする。
The GUI component has an attribute of the area. This is realized not only by the rectangle but also by the area class CRgn, for example. This area represents the event acquisition area of the GUI component, and vector graphics such as wiring diagrams are also displayed in the GUI.
It is possible to set an event acquisition area of any shape that can be handled as a part.

【0018】イベント分配機構は、図1に示すような処
理を行う。画面の座標をパラメータに持つマウス1のイ
ベントの発生をウインドウ2が取得したとき、ウインド
ウ2はマウス1のポイントがGUI部品3のイベント取
得領域にその座標が含まれているかどうかをウインドウ
が持つGUI部品すべてについて調べる。マウスポイン
トが含まれているGUI部品がある場合、ウインドウ2
はそのGUI部品3の持つイベント処理メソッドを起動
する。
The event distribution mechanism performs processing as shown in FIG. When the window 2 acquires the occurrence of the event of the mouse 1 having the coordinates of the screen as a parameter, the window 2 determines whether the point of the mouse 1 includes the coordinates in the event acquisition area of the GUI part 3 by the window. Check all parts. If there is a GUI part that contains the mouse point,
Starts the event processing method of the GUI component 3.

【0019】このとき、ウインドウ2はGUI部品の順
番を持つ所有形態になる「リスト」で持っており、これ
はGUI部品のイベント取得領域の重なりの順番に対応
している。したがって、GUI部品3のイベント取得領
域内にマウスポイントが含まれるか否かの判定は、「リ
スト」の順番で行われる。
At this time, the window 2 has a “list” in a possession form having the order of GUI parts, which corresponds to the order of overlapping of the event acquisition areas of the GUI parts. Therefore, whether or not the mouse point is included in the event acquisition area of the GUI component 3 is determined in the order of “list”.

【0020】すなわち、イベント取得領域が重なってい
る部分にマウスイベントが発生した場合、「リスト」の
上位に位置しているGUI部品のイベント処理メソッド
が優先的に起動される。
That is, when a mouse event occurs in a portion where the event acquisition areas overlap, the event processing method of the GUI component located at the upper position of the “list” is preferentially activated.

【0021】したがって、本実施形態によれば、ウイン
ドウのクラスを継承させたクラスにイベント分配機構を
実装したカプセル化により、実際にイベントを取得して
いるのはウインドウであるが、ユーザからはあたかもG
UI部品自身がイベントを取得しているように見え、ユ
ーザはウインドウのイベント処理を考えることなく、G
UI部品そのもののイベント処理を記述することで済
む。
Therefore, according to the present embodiment, it is the window that actually acquires events by encapsulation in which the event distribution mechanism is implemented in a class that inherits the window class, but it is as if by the user. G
It looks as if the UI component itself is acquiring the event, and the user can use the G
It suffices to describe the event processing of the UI component itself.

【0022】そして、自由な形状のイベント取得領域を
持つGUI部品を実現でき、配線図等のベクトル図形も
GUI部品として取り扱うことができる。さらに、GU
I部品を「リスト」としてウインドウクラスに持たせる
ことにより、部品の重なり合いも考慮したイベント分配
を実現できる。また、GUI部品をウインドウとして作
成しないため、リソースの消費が少なくなる。
A GUI component having an event acquisition area having a free shape can be realized, and a vector graphic such as a wiring diagram can be handled as a GUI component. In addition, GU
By giving the I component as a “list” to the window class, event distribution can be realized in consideration of the overlapping of components. Further, since GUI parts are not created as windows, resource consumption is reduced.

【0023】(第2の実施形態)GUI部品を矩形に限
らない自由な形状として簡単に取り扱いできるようにす
るため、本実施形態では線的位置表現をするGUI部品
を用意する。
(Second Embodiment) In this embodiment, a GUI component that represents a linear position is prepared so that the GUI component can be easily handled as a free shape not limited to a rectangle.

【0024】このGUI部品は、始点座標と終点座標の
2つの端点で位置表現をする。図2の(a)は、線的位
置表現をするGUI部品と特性線を示し、GUI部品を
表す図形中の1本の線分に着目し、これを特性線として
その端点を始点座標と終点座標に設定する。
The position of this GUI component is represented by two end points, ie, start point coordinates and end point coordinates. FIG. 2A shows a GUI part and a characteristic line representing a linear position, and focuses on one line segment in the graphic representing the GUI part. Set to coordinates.

【0025】このGUI部品に対するすべての操作は、
特性線を中心にして、例えば平行移動、端点の移動など
を行う。特性線以外の図形は、図2の(b)や(c)に
示すように、特性線の移動に合わせて移動や回転を行
う。
All operations on this GUI part are:
For example, a parallel movement, a movement of an end point, or the like is performed around the characteristic line. As shown in FIGS. 2B and 2C, the figures other than the characteristic lines move and rotate in accordance with the movement of the characteristic lines.

【0026】したがって、本実施形態では、GUIを2
つの端点を結ぶ特性線で位置表現し、その操作は特性線
を中心にして移動や回転を行うため、配線図などの線分
など線的特性を持つGUI部品に対する操作がより自然
にできる。
Therefore, in this embodiment, the GUI is set to 2
Since the position is represented by a characteristic line connecting two end points, and the operation is performed by moving or rotating around the characteristic line, an operation on a GUI component having a linear characteristic such as a line segment such as a wiring diagram can be performed more naturally.

【0027】[0027]

【発明の効果】以上のとおり、本発明によれば、GUI
部品の操作に関連するメッセージクラスを継承させたマ
ウスイベント処理クラスを用意し、このクラスのメソッ
ドに実装するGUI部品へのイベント分配機構によりマ
ウスポイントに含まれるイベント取得領域を持つGUI
部品をそのイベント取得領域の重なりの順番になるリス
トにしたがって選択するようにしたため、GUI部品を
自由な形状にしてシステム資源の大量消費を無くしなが
らマウスイベント取得領域の重なりにも適切な選択がで
きる効果がある。また、GUI部品へのイベント分配機
構をクラス継承によりカプセル化することでユーザはこ
の機構を意識することなくアプリケーション開発を行う
ことができる。
As described above, according to the present invention, the GUI
Provide a mouse event processing class that inherits the message class related to the operation of the component, and have an event acquisition area included in the mouse point by the event distribution mechanism to the GUI component implemented in the method of this class
Since the components are selected in accordance with the list in which the event acquisition areas overlap in order, the GUI components can be freely shaped to eliminate the large consumption of system resources, and the mouse event acquisition areas can be appropriately selected for overlap. effective. Also, by encapsulating the event distribution mechanism to the GUI components by class inheritance, the user can develop an application without being aware of this mechanism.

【0028】また、本発明によれば、GUI部品は、図
形中の1本の特性線の始点座標と終点座標の2つの端点
で位置表現し、特性線を中心にして移動や回転の操作を
行うようにしたため、配線図などの線的特性を持つGU
I部品の表現にしながら自然な操作を行うことができ
る。
Further, according to the present invention, the GUI component is represented as a position by two end points of the start point coordinate and the end point coordinate of one characteristic line in the figure, and the operation of moving or rotating around the characteristic line is performed. GUs with linear characteristics such as wiring diagrams
A natural operation can be performed while expressing the I component.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施形態を示すマウスイベント処理
例。
FIG. 1 is a mouse event processing example showing an embodiment of the present invention.

【図2】他の実施形態を示す線的位置表現をするGUI
と特性線及び回転例。
FIG. 2 is a GUI showing a linear position representing another embodiment.
And characteristic lines and rotation examples.

【図3】折れ線GUI部品の例。FIG. 3 is an example of a polygonal line GUI component.

【図4】線的GUI部品の表現と移動例。FIG. 4 is an example of a representation and movement of a linear GUI component.

【符号の説明】[Explanation of symbols]

1…マウス 2…ウインドウ 3…GUI部品 1 mouse 2 window 3 GUI parts

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 コンピュータにおけるユーザからのコマ
ンド入力をマウスを使って画面上のGUI部品の選択で
行うにおいて、 オブジェクト指向パラダイムを持つOSを搭載したコン
ピュータにはGUI部品の操作に関連するメッセージク
ラスを継承させたマウスイベント処理クラスを用意し、
このクラスのメソッドにはGUI部品へのイベント分配
機構を実装し、このイベント分配機構はマウスイベント
の発生を取得したときにマウスポイントがGUI部品の
イベント取得領域に含まれているかどうかをGUI部品
すべてについて調べGUI部品がある場合にイベント処
理メソッドを起動し、前記イベント取得領域に含まれる
GUI部品が複数になるときはGUI部品のイベント取
得領域の重なりの順番になるリストにしたがってGUI
部品を選択することを特徴とするマウスイベント処理方
法。
When a user inputs a command in a computer by selecting a GUI component on a screen using a mouse, a computer equipped with an OS having an object-oriented paradigm is provided with a message class relating to the operation of the GUI component. Prepare the inherited mouse event processing class,
The method of this class implements an event distribution mechanism for GUI parts, and this event distribution mechanism determines whether the mouse point is included in the event acquisition area of the GUI part when the occurrence of a mouse event is acquired. When there is a GUI component, an event processing method is started.
A mouse event processing method characterized by selecting a part.
【請求項2】 コンピュータにおけるユーザからのコマ
ンド入力をマウスイベントとして受け付けるためのGU
I部品において、 前記GUI部品は、図形中の1本の線分を特性線とし、
この特性線の始点座標と終点座標の2つの端点で位置表
現し、前記特性線を中心にして移動や回転の操作を行う
ことを特徴とするGUI部品。
2. A GU for receiving a command input from a user in a computer as a mouse event.
In the I component, the GUI component uses one line segment in the figure as a characteristic line,
A GUI component characterized in that a position is represented by two end points of a start point coordinate and an end point coordinate of the characteristic line, and a movement or a rotation operation is performed around the characteristic line.
JP8295990A 1996-11-08 1996-11-08 Mouse event processing method, and gui part Pending JPH10143348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8295990A JPH10143348A (en) 1996-11-08 1996-11-08 Mouse event processing method, and gui part

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8295990A JPH10143348A (en) 1996-11-08 1996-11-08 Mouse event processing method, and gui part

Publications (1)

Publication Number Publication Date
JPH10143348A true JPH10143348A (en) 1998-05-29

Family

ID=17827715

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8295990A Pending JPH10143348A (en) 1996-11-08 1996-11-08 Mouse event processing method, and gui part

Country Status (1)

Country Link
JP (1) JPH10143348A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011053927A (en) * 2009-09-02 2011-03-17 Nippon Telegr & Teleph Corp <Ntt> Image display device and image display method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04246785A (en) * 1991-01-31 1992-09-02 Shimadzu Corp Graphic preparing device
JPH0696177A (en) * 1992-09-10 1994-04-08 Fujitsu Ltd Graphic relating edit processing method and editor
JPH07200243A (en) * 1993-12-29 1995-08-04 Casio Comput Co Ltd Icon selection controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04246785A (en) * 1991-01-31 1992-09-02 Shimadzu Corp Graphic preparing device
JPH0696177A (en) * 1992-09-10 1994-04-08 Fujitsu Ltd Graphic relating edit processing method and editor
JPH07200243A (en) * 1993-12-29 1995-08-04 Casio Comput Co Ltd Icon selection controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011053927A (en) * 2009-09-02 2011-03-17 Nippon Telegr & Teleph Corp <Ntt> Image display device and image display method

Similar Documents

Publication Publication Date Title
US7636893B2 (en) Client server approach for interactive updates of graphical user interfaces on intranets
US7019757B2 (en) Changing the alpha levels of an application window to indicate a status of a computing task
US5179655A (en) Multiwindow control method and apparatus for work station having multiwindow function
US9015631B2 (en) Animated icons to preview transformations related to 3D models
JPH07160608A (en) System and method for display of program application
US20130061164A1 (en) Method and device for using super taskbar to control instant messaging application
JP2004102500A (en) Gui application development supporting device and method and computer program
US20150082199A1 (en) Document viewing mechanism for document sharing environment
WO2008059849A1 (en) Menu display apparatus, information processing apparatus and menu display method
JP4449183B2 (en) Image editing system, image editing method, and storage medium
JP2000089886A (en) Desk top management system/method using virtual polyhedron
JPH10143348A (en) Mouse event processing method, and gui part
CN111913711B (en) Video rendering method and device
JPH07199889A (en) Display controller
JPH06149525A (en) Diplay control method
CN111813404B (en) Application method, medium and client based on mixed graphic display
JPH0462090B2 (en)
JPH0635855A (en) Work station control method for computer system
Maloney et al. Getting Something to Show
JPH0721401A (en) Display device
JPH11119967A (en) Network type computer system and window component display control method
JPH05313850A (en) Window size optimizing method
Messer Halo: A Windowing system for Angel
CN114327213A (en) Canvas scaling method and device, electronic equipment and storage medium
CN117765847A (en) Display equipment and closed graph generation method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040827

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050215

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050705