JPH03242721A - Mouse font display system - Google Patents

Mouse font display system

Info

Publication number
JPH03242721A
JPH03242721A JP2038318A JP3831890A JPH03242721A JP H03242721 A JPH03242721 A JP H03242721A JP 2038318 A JP2038318 A JP 2038318A JP 3831890 A JP3831890 A JP 3831890A JP H03242721 A JPH03242721 A JP H03242721A
Authority
JP
Japan
Prior art keywords
mouse
font
program
application program
control program
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
JP2038318A
Other languages
Japanese (ja)
Inventor
Kiyohito Kubota
清仁 窪田
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.)
NEC Home Electronics Ltd
NEC Corp
Original Assignee
NEC Home Electronics Ltd
Nippon Electric 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 NEC Home Electronics Ltd, Nippon Electric Co Ltd filed Critical NEC Home Electronics Ltd
Priority to JP2038318A priority Critical patent/JPH03242721A/en
Publication of JPH03242721A publication Critical patent/JPH03242721A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify the structure of an application program by registering a table of font used as a mouse cursor. CONSTITUTION:When the font table is registered, a mouse control program stores its entry address and automatically assigns font numbers 8,000H, 8,001H,..., n to fonts defined in the font table in order from the first font. Font numbers 0 to 7FFFH are assigned to fonts in a ROM. When a font number is designated, the mouse control program discriminates a font in the ROM or a font of the application in accordance with the font number and refers to the corresponding font table to store the actual mouse font in the font storage area of the mouse control program and displays the mouse font on a screen. Hereafter, the font number of the new mouse font is designated to switch the mouse font. Thus, the structure of the application program is simplified.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、マウスフォントの表示方式に関し、特に表示
するマウスフォントの管理方式及び、マウスの割り込み
処理期間中にマウスフォントを切り換える方式に関する
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a method for displaying mouse fonts, and more particularly to a method for managing displayed mouse fonts and a method for switching mouse fonts during a mouse interrupt processing period.

従来の技術 パーソナルコンピュータやワードプロセッサなどの情報
処理装置において、マウスと呼ばれるポインティングデ
バイスがしばしば利用される。
2. Description of the Related Art A pointing device called a mouse is often used in information processing devices such as personal computers and word processors.

通常マウスは、マウス本体であるハードウェアとそのデ
ータを利用するためのソフトウェア(マウス制御プログ
ラム)から構成されている。
A mouse usually consists of hardware, which is the mouse body, and software (mouse control program) for using the data.

第6図は、マウスが利用可能な従来の一般的なコンピュ
ータの構成図である。
FIG. 6 is a block diagram of a conventional general computer that can use a mouse.

この第6図においてマウス本体5は、マウスインタフェ
ース4とシステムバス15を経由してCPUIと接続さ
れている。マウス制御プログラム10は2つのプログラ
ム、アプリケーションインターフェースプログラム1)
と割込処理プログラム及び、2つのデータエリアマウス
フォント格納エリア13とマウスデータエリア14がら
構成されている。
In FIG. 6, the mouse body 5 is connected to the CPUI via the mouse interface 4 and the system bus 15. As shown in FIG. The mouse control program 10 consists of two programs, an application interface program 1)
It consists of an interrupt processing program, and two data areas: a mouse font storage area 13 and a mouse data area 14.

マウス割り込み処理プログラム12は、CPU1の割り
込みを利用して、主として4のマウスマウスインターフ
ェースを経て得られた物理的なマウス情報をアプリケー
ションプログラム6が利用しやすい情報に変換したり、
マウスフォント格納エリア13に入っているマウスフォ
ントを2のCRTコントローラ(CTRC)を経由して
、画面(CRT)3に表示させる。
The mouse interrupt processing program 12 uses interrupts from the CPU 1 to convert physical mouse information obtained mainly through the mouse interface 4 into information that is easy for the application program 6 to use.
The mouse font stored in the mouse font storage area 13 is displayed on the screen (CRT) 3 via the CRT controller (CTRC) 2.

マウス割り込み処理で得られたマウスのX位置やY位置
及びボタンが押されているかどうかの情報は、1.4の
マウスデータエリアに格納される。
The X and Y positions of the mouse and information on whether a button is pressed or not, obtained through the mouse interrupt processing, are stored in the mouse data area 1.4.

このエリアに格納されているマウス情報は、アプリケー
ションインターフェースプログラム1)を経てアプリケ
ーションプログラム6から参照することができる。
The mouse information stored in this area can be referenced from the application program 6 via the application interface program 1).

このアプリケーションインタフェースプログラム1)は
、次に示すようなアプリケーションプログラムがマウス
を利用する、あるいは制御するための機能(アプリケー
ションインターフェース機能)を持つ。
This application interface program 1) has a function (application interface function) for the following application programs to use or control the mouse.

■現在のマウスの位置情報(X位置、Y位置)を返す。■Returns current mouse position information (X position, Y position).

■現在のマウスのボタン情報(押されている、離されて
いる)を返す。
■Returns current mouse button information (pressed/released).

■マウスカーソルの位置を設定する。■Set the mouse cursor position.

■マウスカーソルのフォントを設定する。■Set the mouse cursor font.

■マウスの割り込み処理プログラムからアプリケーショ
ンプログラム中に記述されたルーチンをコール(ユーザ
サブルーチン機能と呼ぶ)する。
■Call a routine written in the application program from the mouse interrupt processing program (called a user subroutine function).

上記のから■の機能は、その[1的や用途は明らかであ
る。
The purpose and use of the above functions are obvious.

例えば、■のマウスフォントに関しては、設定されたマ
ウスフォントはマウスフォント格納エリア13に格納さ
れ、以後のマウスの割り込みでは13に格納されている
新しいフォントが参照されて画面に表示される。すなわ
ち、■はマウスフォント自体を定義する機能と、フォン
トを切り換える機能の2つの機能を持つ。
For example, regarding the mouse font (■), the set mouse font is stored in the mouse font storage area 13, and the new font stored in the mouse font storage area 13 is referenced and displayed on the screen at subsequent mouse interruptions. That is, ■ has two functions: the function of defining the mouse font itself, and the function of switching fonts.

また■の機能は、アプリケーションプログラム6からマ
ウス制御プログラム10に対して、あらかじめ定義され
たユーザサブルーチン8を、割り込み処理プログラム1
2がコールする機能を言う、ユーザサブルーチン機能は
、14に格納されているマウス情報を参照することによ
り、マウスの動作に対してリアルタイム性を要求される
アプリケーションプログラムや、独自のインターフェー
スを持ちたいアプリケーションプログラムのために用意
されている。
In addition, the function (■) sends a predefined user subroutine 8 from the application program 6 to the mouse control program 10 to the interrupt processing program 1.
The user subroutine function, which refers to the function called by 2, refers to the mouse information stored in 14 to enable application programs that require real-time performance for mouse operations or applications that want to have their own interface. provided for the program.

前者の例としては、ボタンが押され続けている場合に画
面にメニューを表示するようなプログラムがある。後者
の例としては、通常マウス制御プログラムにはマウスの
クリック(マウスのボタンを押して、離したという操作
)情報を返す機能がないので、ユーザサブルーチン内で
(ボタン情報を参照して)、クリック情報を設定する場
合がある。
An example of the former is a program that displays a menu on the screen if a button is held down. As an example of the latter, a mouse control program usually does not have a function to return mouse click information (the operation of pressing and releasing a mouse button), so in a user subroutine (by referring to button information), the click information can be returned. may be set.

このユーザサブルーチンは割り込み処理中に常に呼ばれ
るわけではなく1通常、あらかじめアプリケーションプ
ログラムがマウス制御プログラムに対して、ユーザサブ
ルーチンをコールする条件(ユーザサブルーチンコール
条件)を定義するすることができる。このユーザサブル
ーチンコール条件を利用することにより、ユーザサブル
ーチンは(マウスが移動した時だけなど)必要な場合に
のみ、マウス情報やアプリケーションプログラムの内部
情報を調べれば良いので、効率のよいアプリケーション
プログラムの作成が可能となる。
This user subroutine is not always called during interrupt processing; normally, the application program can define in advance a condition for calling the user subroutine (user subroutine call condition) for the mouse control program. By using this user subroutine call condition, the user subroutine only needs to check the mouse information and internal information of the application program only when necessary (such as only when the mouse moves), making it possible to create efficient application programs. becomes possible.

ユーザサブルーチンコール条件の例を以下に示す。An example of user subroutine call conditions is shown below.

■マウスが移動した。■The mouse has moved.

■マウスのボタンが押された。■A mouse button was pressed.

■マウスのボタンが離された。■The mouse button was released.

■すべての場合(この時には、ユーザサブルーチンが常
にコールされる)。
■ In all cases (in this case, the user subroutine is always called).

ここで第7図は、−殻間なマウス割り込み処理プログラ
ムのフローチャートである。
FIG. 7 is a flowchart of the inter-frame mouse interrupt processing program.

第6図のブロック図とあわせて、割り込み処理の流れを
以下に説明する。
The flow of interrupt processing will be explained below in conjunction with the block diagram of FIG.

まず、処理Aでマウスインターフェース4を得て、マウ
ス本体5の物理的データたる移動量(例:マウスが5c
m移動した)や、ボタン情報を得る。次に処理Bで、こ
の移動長を画面上の単位(例:5ドツト)に変換し、変
換された移動量をマウスのX、Y座標に加算して新しい
X、Y位置を計算する。このボタン情報やマウス座標の
データは、マウスデータ格納エリア14に格納する。
First, the mouse interface 4 is obtained in process A, and the amount of movement as physical data of the mouse body 5 (for example, if the mouse is 5c
m) and obtain button information. Next, in process B, this movement length is converted to a unit on the screen (eg, 5 dots), and the converted movement amount is added to the X and Y coordinates of the mouse to calculate a new X and Y position. This button information and mouse coordinate data are stored in the mouse data storage area 14.

次に1割り込み処理プログラムは、処理Cにおいてユー
ザサブルーチンコール条件が満たされたかどうかを調べ
る。その条件が満たされた場合には、マウスデータ格納
エリア14に格納されているマウス座標と、ボタン情報
をCPUのレジスタにセットし、ユーザサブルーチンを
コールする(処理D)。
Next, in process C, the 1 interrupt processing program checks whether the user subroutine call condition is satisfied. If the conditions are met, the mouse coordinates and button information stored in the mouse data storage area 14 are set in the register of the CPU, and a user subroutine is called (processing D).

ユーザサブルーチンコール条件が成立しなかった場合、
もしくはユーザサブルーチンコールから戻った割り込み
処理プログラムは、現在表示されているマウスフォント
をいったん画面から消し、更新されたマウスの座標位置
に再度マウスフォントを表示する(処理E)。
If the user subroutine call condition is not met,
Alternatively, the interrupt processing program that returns from the user subroutine call temporarily erases the currently displayed mouse font from the screen and displays the mouse font again at the updated mouse coordinate position (process E).

ここで、アプリケーションプログラムは、ユーザインタ
フェースを向上させるため、次の機能を実現させている
Here, the application program realizes the following functions in order to improve the user interface.

1)アプリケーションプログラムの実行中に、(バック
グラウンド処理で)リアルタイムでマウスフォントを変
える。
1) Change the mouse font in real time (in the background) while the application program is running.

(例:アプリケーションプログラムのある処理を実行中
の間、時計の針を動かしたり、砂時計の砂を落す。) 2)マウス位置やマウスのボタン状態あるいはキーボー
ドの状態など、アプリケーションプログラムの「システ
ム状態」にしたがってマウスフォントを変える。
(Example: While an application program is executing a certain process, move the hands of a clock or drop the sand in an hourglass.) 2) According to the "system state" of the application program, such as the mouse position, mouse button state, or keyboard state. Change mouse font.

(例:画面のメニューバー上とそれ以外でマウスフォン
トを変える場合や、左ボタンが押されている間マウスフ
ォントを変える。あるいはシフトキーが押されている間
だけマウスフォントを変える。) などの機能である。
(For example, changing the mouse font on and off the menu bar on the screen, changing the mouse font while the left button is pressed, or changing the mouse font only while the shift key is pressed.) Functions such as It is.

このようなユーザインタフェースの具体的な効果として
は、上記1)項の場合では「単に固定した時計を表示す
るよりもアプリケーションプログラムの現在の処理の進
捗状況を砂時計の砂の量で表すことにより、アプリケー
ションプログラムの状態をより具体的にユーザに示すこ
とができる」という点がある。
As for the specific effect of such a user interface, in the case of item 1) above, ``Rather than simply displaying a fixed clock, the current processing progress of the application program can be expressed by the amount of sand in an hourglass. The state of the application program can be shown to the user more specifically."

また上記2)項の場合では、「アプリケーションプログ
ラムのシステム状態によって使用可能なコマンドが異な
る/あるいはアプリケーションプログラムの内部状態が
異なる、ということを視覚により容易にユーザに認識さ
せることができる」といったユーザインターフェースの
向上がはかられる。
In the case of item 2) above, a user interface that "allows the user to easily visually recognize that the available commands differ depending on the system state of the application program/or that the internal state of the application program differs" Improvements can be made.

このようにアプリケーションプログラムがマウスフォン
トを変える場合、上記のアブ リケーション・インタフ
ェース機能を用いて、随時マウスのフォントパターンを
定義している。第8図は上記1)の場合、第9図は上記
2)の場合において、アプリケーションプログラム内で
どのようにフォントパターンを定義しているかを示した
ものである。
When an application program changes the mouse font in this way, it uses the above application interface function to define the mouse font pattern at any time. FIG. 8 shows how the font pattern is defined in the application program in case 1) above, and FIG. 9 shows how the font pattern is defined in the application program in case 2) above.

アニメーション的なマウスフォントを表示させるには、
複数のマウスフォントをある期間内で連続して表示させ
る必要がある。これを実現するには、第3図に示すよう
に現在のアプリケーションプログラムの1つの処理を処
理1から処理nに分割し、しかも各処理の前でマウスフ
ォントを定義している。
To display an animated mouse font,
It is necessary to display multiple mouse fonts consecutively within a certain period of time. To achieve this, one process of the current application program is divided into processes 1 to n, as shown in FIG. 3, and a mouse font is defined before each process.

第9図は、X>XiかつY)Yl(領域l)の場合にマ
ウスフォントlを、そうでない場合(領域O)にはマウ
スフォント0を表示させるアプリケーションプログラム
の例である。
FIG. 9 is an example of an application program that displays mouse font 1 when X>Xi and Y)Yl (area 1), and otherwise displays mouse font 0 (area O).

まずステップ1でマウスフォントと変数初期化を行なう
。初期状態ではX=OかつY=Oの位置にマウスフォン
トOを表示させる。変数フォントタイプは、フォントO
とフォント1のどちらが表示されているかを示す2値変
数であり、最初はフォ ントOであるため、値Oをとる
First, in step 1, initialize the mouse font and variables. In the initial state, mouse font O is displayed at the position where X=O and Y=O. The variable font type is font O.
This is a binary variable that indicates whether font 1 or font 1 is displayed, and since font O is initially displayed, it takes the value O.

ステップ2で得られた現在のマウス座標から、ステップ
3から5で必要ならば、フォントを変える。フォントを
変えるのは、現在のマウス座標が領域Oでかつ、現在の
フォントタイプが1あるいは領域1でフォントタイプが
0の場合である。これ以外の場合にはフォントは変更し
ない。
From the current mouse coordinates obtained in step 2, change the font if necessary in steps 3 to 5. The font is changed when the current mouse coordinates are in area O and the current font type is 1, or when area 1 and font type is 0. In other cases, the font is not changed.

発明が解決しようとする課題 上記の従来方式でマウスフォントを換える方式では、ア
プリケーションプログラムインタフェースを利用して、
1回につき1つのマウスフォントしか定義できない。こ
のため、次のような解決課題があった。すなわち、 (1)課題1 複数のマウスフォントを利用するアプリケーションにお
いて、マウスフォントを切°り換える場合に、マウス制
御プログラムに対してフォントパターンを毎回定義する
必要があり、フォント管理が繁雑でかつアプリケーショ
ンプログラムの構造が複雑になる。
Problems to be Solved by the Invention In the conventional method described above for changing mouse fonts, an application program interface is used to change the mouse font.
Only one mouse font can be defined at a time. For this reason, there were the following problems to be solved. In other words, (1) Issue 1 When switching the mouse font in an application that uses multiple mouse fonts, it is necessary to define the font pattern for the mouse control program each time, making font management complicated and the application The program structure becomes complex.

(2)課題2 第3図で示したように、マウスフォントをリアルタイム
で変更するには、アプリケーションプログラムの処理自
体を複数の処理に分割するといった余分な処理が必要と
なる。
(2) Problem 2 As shown in FIG. 3, changing the mouse font in real time requires extra processing such as dividing the application program process itself into multiple processes.

また、フォントの切り換えはアプリケーションプログラ
ムインタフェースを用いて、マウス制御プログラムが該
当フォントをフォント格納エリアにコピーし、コピーさ
れたフォントを画面に表示する処理を行なっている。
Furthermore, when switching fonts, an application program interface is used, and the mouse control program copies the corresponding font to the font storage area and displays the copied font on the screen.

しかし、リアルタイムでマウスフォントを変えるような
場合では、アプリケーションプログラムは、フォント変
更処理をマウス制御プログラムに対して頻繁に発行しな
ければならない。この場合フォント変更にともなうアプ
リケーションプログラムと、マウス制御プログラムのオ
ーバヘッドのために、フォントの切り換えをスムーズに
できず、マウスカーソルによるアニメーションができな
い。
However, when changing the mouse font in real time, the application program must frequently issue font change processing to the mouse control program. In this case, due to the overhead of the application program and mouse control program associated with changing the font, it is not possible to switch fonts smoothly, and animation using the mouse cursor cannot be performed.

(3)課題3 マウスの状1)(位置やボタン情報)やキーボード状態
などの「システム状態」によってマウスフォントを変更
するようなアプリケーションプログラムでは、アプリケ
ーションプログラムがマウスやキーボードを常に監視し
てマウスフォントを定義していたため、アプリケーショ
ンプログラムのオーバヘッドが大きい。
(3) Issue 3 In an application program that changes the mouse font depending on the "system status" such as mouse status 1) (position and button information) or keyboard status, the application program constantly monitors the mouse and keyboard and changes the mouse font. , the overhead of the application program is large.

などの問題点である。Problems such as:

課題を解決する手段 本発明は、上記課題1の解決手段(発明1)として、マ
ウス制御プログラムにおいて、複数のマウスフォントを
定義する機能と各フォントにl対lに対応するフォント
番号により、該当フォントを表示させる機能を導入する
Means for Solving the Problems The present invention, as a means for solving the problem 1 above (invention 1), provides a mouse control program with a function of defining a plurality of mouse fonts and a font number corresponding to each font in a l-to-l ratio. Introducing a function to display.

また上記課題2の解決手段(発明2)として、上記発明
1のマウス制御プログラムにおいて、アプリケーション
プログラムから指定された。フォント番号と表示期間を
定義したテーブル(マウス表示制御テーブル)にしたが
って、割り込み処理プログラムが割り込み処理期間中に
マウスフォントを自動的に切り換える。
Further, as a means for solving the above problem 2 (invention 2), in the mouse control program of the above invention 1, it is specified from the application program. The interrupt processing program automatically switches the mouse font during the interrupt processing period according to a table (mouse display control table) that defines font numbers and display periods.

さらに上記課題3の解決手段(発明3)として、マウス
割り込み処理プログラムからコールされるユーザサブル
ーチンのリターン値にしたがって、現在のマウスフォン
トを(必要ならば)切り換える。
Furthermore, as a means for solving the above-mentioned problem 3 (invention 3), the current mouse font is switched (if necessary) according to the return value of the user subroutine called from the mouse interrupt processing program.

作用 まず上記課題1の解決手段は、次のように作用する。action First, the means for solving problem 1 above operates as follows.

アプリケーションプログラムから複数のマウスフォント
を定義したマウスフォントテーブ(2)マウス制御プロ
グラムに与えられると、マウス制御プログラムはそのフ
ォントテーブルのエントリーアドレスを記憶する(フォ
ント登録機能と呼ぶ)。この登録機能が行なわれると、
フォントテーブルの先頭のフォントから自動的にフォン
ト番号が(例えばOll、という風に)つけられる。
When a mouse font table (2) defining a plurality of mouse fonts is provided from an application program to a mouse control program, the mouse control program stores the entry address of the font table (referred to as a font registration function). When this registration function is performed,
Font numbers are automatically assigned (for example, Oll) from the first font in the font table.

次に、アプリケーションプログラムから表示すべきマウ
スフォントのフォント番号が与えられると、マウス制御
プログラムは記憶しているエントリーアドレスから実際
のフォントをフォント格納エリアにコピーするとともに
、そのフォントを画面に表示させる。
Next, when the font number of the mouse font to be displayed is given from the application program, the mouse control program copies the actual font from the stored entry address to the font storage area and displays the font on the screen.

また、ROMに格納されているフォントとアプリケーシ
ョンプログラムが有しているフォントを利用するために
、フォント番号を2つに分ける。
Furthermore, in order to use fonts stored in the ROM and fonts owned by the application program, the font numbers are divided into two.

例えば、フォント番号0−7FFFHまではROM内フ
ォントを、フォント番号8000 I−1以降はアプリ
ケーションプログラムのフォントを示すように区別する
ことにより、ROM内のフォントとアプリケーションプ
ログラムのフォントを同時に利用することができる。
For example, by distinguishing font numbers 0-7FFFH to indicate the fonts in the ROM, and font numbers 8000 I-1 and later to indicate the fonts of the application program, it is possible to use the fonts in the ROM and the fonts of the application program at the same time. can.

そして、上記課題2の解決手段は1次のよう、に作用す
る。                 ・・、;y、
I□、=マウス制御プログラム内の割り込み処理プログ
・ラムは、与えられたマウス表示制御テーブルにしたが
い、そのテーブルに定義されているフォント番号に対応
するフォントをテーブルに定義された該当期間だけ表示
させる。その表示期間が終了すると、割り込み処理プロ
グラムは自動的にマウス表示制御テーブルに定義されて
いる次のフォントに対して、同様な処理を繰り返す。
The means for solving problem 2 above operates as follows. ..., ;y,
I□,=The interrupt processing program in the mouse control program displays the font corresponding to the font number defined in the table for the corresponding period defined in the table according to the given mouse display control table. . When the display period ends, the interrupt processing program automatically repeats the same process for the next font defined in the mouse display control table.

さらに、上記課M3の解決手段は、次のように作用する
Furthermore, the solution of section M3 operates as follows.

ユーザサブルーチンのコール条件として、フォントを変
える原因となる条件を定義しておき(例えば、マウス位
置によってフォントを変える場合には、マウスの移動を
コール条件として定義)、ユーザサブルーチンは実際の
フォントを変更する条件が成立したかどうかを調べる。
Define the conditions that cause the font to change as a call condition for the user subroutine (for example, if you want to change the font depending on the mouse position, define mouse movement as the call condition), and then the user subroutine changes the actual font. Check whether the conditions are met.

キーボードなどマウス以外の条件によりフォントを変え
る場合には、いつでもユーザサブルーチンがコールされ
るように定義しておき、ユーザサブルーチンがキーボー
ド状態などのマウスフォントを変える条件を常に監視し
ておく。
When changing the font due to conditions other than the mouse, such as the keyboard, the user subroutine is defined to be called at any time, and the user subroutine always monitors the conditions for changing the mouse font, such as the keyboard state.

もし、フォントを変更する条件が成立した場合には、ユ
ーザサブルーチンが新しいフォントに対応するフォント
番号をリターン値として設定する。そうでない場合には
、現在のフォント番号を設定する。
If the conditions for changing the font are met, the user subroutine sets the font number corresponding to the new font as the return value. Otherwise, set the current font number.

マウス制御プログラム内の割り込み処理プログラムは、
ユーザサブルーチンのリターン値として設定されたフォ
ント番号を調べ、もし現在のフォント番号と異なってい
れば、新しいフォント番号に対応するフォントをフォン
ト格納エリアにコピーするとともに、そのフォントを画
面に表示させる。
The interrupt handling program in the mouse control program is
The font number set as the return value of the user subroutine is checked, and if it is different from the current font number, the font corresponding to the new font number is copied to the font storage area and the font is displayed on the screen.

実施例 (1)課題1対応の実施例 第1図は、上記課M1の解決手段を用いた一場合のアプ
リケーションプログラムのフローを示す一実施例である
Embodiment (1) Embodiment corresponding to problem 1 FIG. 1 is an embodiment showing the flow of an application program in one case using the solving means of section M1.

各ステップで記述している事項は、すべてマウス制御プ
ログラムに対する命令である。ステップ2では、第2図
のようなマウスフォントテーブルをマウス制御プログラ
ムに登録する。マウスフォントテーブルには、フォント
の水平サイズと垂直サイズ及び、実フォントがフォント
の個数だけ定義されている。
All items described in each step are instructions for the mouse control program. In step 2, a mouse font table as shown in FIG. 2 is registered in the mouse control program. In the mouse font table, horizontal and vertical sizes of fonts and actual fonts are defined as many as the number of fonts.

ROM内のフォントに関しても、同様なフォントテーブ
(2)ROMに格納されている。
The fonts in the ROM are also stored in a similar font table (2) in the ROM.

フォントテーブルを登録すると、マウス制御プログラム
は、そのエントリーアドレスを記憶するとともに、フォ
ントテーブルに定義されている先頭のフォントから自動
的にフォント番号8000H18001)L ・・ n
を割り振る。
When a font table is registered, the mouse control program memorizes its entry address and automatically selects the font number 8000H18001)L...n from the first font defined in the font table.
Allocate.

ROM内のフォントには、フォント番号0〜7FFFH
が割り当てられている。
The fonts in the ROM have font numbers 0 to 7FFFH.
is assigned.

ステップ3において表示したいフォント番号が指定され
ると、マウス制御プログラムはフォント番号から、RO
M内フォントがあるいはアプリケ−ションのフォントか
を判断する。
When the font number to be displayed is specified in step 3, the mouse control program selects the RO from the font number.
Determine whether the font in M is an application font.

次に、対応するフォントテーブルを参照して、実際のマ
ウスフォントをマウス制御プログラム内のフォント格納
エリアに格納するとともに、画面にマウスフォントを表
示させる。
Next, referring to the corresponding font table, the actual mouse font is stored in the font storage area in the mouse control program, and the mouse font is displayed on the screen.

以後、マウスフォントの切り換えはステップnで示した
ように、新しいマウスフォントのフォント番号を指定す
ることにより行なう。
Thereafter, the mouse font is switched by specifying the font number of the new mouse font, as shown in step n.

(2)課題2対応の実施例 第7図は、マウスフォントでアニメーションを行なう場
合において、アプリケーションプログラムがマウス制御
プログラムに対して設定する、マウス表示制御テーブル
のl実施例である。
(2) Embodiment for Issue 2 FIG. 7 is an embodiment of a mouse display control table that is set by an application program for a mouse control program when animation is performed using a mouse font.

このマウス表示制御テーブルには、(複数の)マウスフ
ォント番号とその表示期間が定義されている。
This mouse display control table defines (a plurality of) mouse font numbers and their display periods.

第3図のマウス表示制御テーブ(2)マウス制御プログ
ラム対して与えられると、マウス制御プログラムは、フ
ォント3をマウス割り込み回数の5回に相当する時間だ
け表示すると、フォント番号8のフォントに切り換えて
、割り込み回数2回分の時間表示する。
When the mouse display control table (2) in Figure 3 is given to the mouse control program, the mouse control program switches to the font with font number 8 after displaying font 3 for a time corresponding to 5 mouse interrupts. , displays the time for two interrupts.

赦後に、フォント1を時間4だけ表示し、このマウスア
ニメーションを行なう前のフォントに戻る。
After the release, font 1 is displayed for time 4, and the font returns to the one before this mouse animation.

アニメーションを繰り返したい場合には、フォント番号
もしくは表示期間に特殊な値を実現することで行なう1
例えばフォント番号が−1の場合は上記アニメーション
操作を繰り返すということにしておき、表示期間のエリ
アには繰り返す回数を定義しておくことで実現できる。
If you want to repeat the animation, you can do it by realizing a special value for the font number or display period1.
For example, if the font number is -1, the above animation operation is repeated, and the number of repetitions is defined in the display period area.

第4図は、この表示制御テーブルにしたがって動作する
マウス制御プログラム内のマウス割り込み処理プログラ
ムのフローチャートを示す。
FIG. 4 shows a flowchart of a mouse interrupt processing program within a mouse control program that operates according to this display control table.

処理40と41は、従来のマウス割り込み処理プログラ
ムと同様に、マウスデータの取り込みと新しいマウス位
置の計算を行なう。処理42及び43において、現在の
マウスフォントの表示期間が終了したかどうかを調べる
Processes 40 and 41, similar to conventional mouse interrupt handling programs, capture mouse data and calculate new mouse positions. In steps 42 and 43, it is checked whether the display period of the current mouse font has ended.

変数Termは表示期間が終了したかどうかを調べるフ
ラグであり、初期値はマウス表示制御テーブルの表示期
間である。
The variable Term is a flag for checking whether the display period has ended, and its initial value is the display period of the mouse display control table.

’l’erm()0の場合には、現在のマウスフォント
を引き続き表示する。
If 'l'erm() is 0, continue to display the current mouse font.

T e r m = Oとなった場合には、マウス表示
制御テーブルに定義されている次のフォント番号に対応
するフォントを画面に表示させるとともに、変数Ter
mを次のフォントの表示期間で再初期化する。
When T e r m = O, the font corresponding to the next font number defined in the mouse display control table is displayed on the screen, and the variable T
Reinitialize m at the next font display period.

(37課Wi3対応の実施例 第5図は、本発明のマウス制御プログラムの割り込み処
理プログラムの一実施例を示すフローチャートである。
(Section 37 Wi3 Compatible Embodiment FIG. 5 is a flowchart showing an embodiment of the interrupt processing program of the mouse control program of the present invention.

ここでは、マウス位置によってマウスフォントを変更す
る場合を例にとって処理の流れを説明する。この場合に
は、アプリケーションプログラムは、マウスの移動をユ
ーザサブルーチンコールの条件としてあらかじめ定義し
ておく。
Here, the process flow will be explained using an example in which the mouse font is changed depending on the mouse position. In this case, the application program defines mouse movement in advance as a condition for a user subroutine call.

処理50及び51は従来のマウス割り込み処理プログラ
ムと同様である。但し、処理52においてコールされた
ユーザサブルーチンは現在のマウス座標からマウスフォ
ントを変えるかどうかを調べ、表示すべきマウスフォン
ト番号をCPUレジスタにセットして、終了する。
Processes 50 and 51 are similar to conventional mouse interrupt processing programs. However, the user subroutine called in process 52 checks whether the mouse font should be changed based on the current mouse coordinates, sets the mouse font number to be displayed in the CPU register, and ends.

ユーザサブルーチンコール条件が成立しなかった場合に
は、(処理54でマウスフォントを変更しないように)
現在のフォント番号をCPUレジスタにセットする(処
理53)。
If the user subroutine call condition is not satisfied, (so as not to change the mouse font in process 54)
The current font number is set in the CPU register (processing 53).

処理54において、CPUレジスタの値を調べて、指定
されたフォント番号が現在のフォント番号と同じかどう
かを調べる。同じ場合には、新しいマウス位置にマウス
カーソルを移動させる。異なる場合(ユーザサブルーチ
ンから異なるフォント番号を指定された場合)には、現
在のマウスフォントを画面から削除し、フォントテーブ
ルにある実際のマウスフォントをフォント格納エリアに
コピーし、それを画面上の新しいマウス位置に表示させ
る。
In step 54, the value of the CPU register is checked to see if the specified font number is the same as the current font number. If the same, move the mouse cursor to the new mouse position. If different (a different font number was specified from the user subroutine), it deletes the current mouse font from the screen, copies the actual mouse font from the font table into the font storage area, and replaces it with the new one on the screen. Display it at the mouse position.

発明の効果 以上のように本発明によれば1次のような効果が得られ
る。
Effects of the Invention As described above, according to the present invention, the following effects can be obtained.

まず、上記課題1に対応するマウスフォント表示方式に
よる解決手段によれば、マウスカーソルとして使用する
フォントのテーブルをfMしておくことにより、以後は
そのフォントに1対lに対応するフォント番号により、
フォントの切り換えができる。
First, according to the solution using the mouse font display method corresponding to problem 1 above, by setting a table of fonts to be used as a mouse cursor as fM, from then on, by using a font number corresponding to that font on a one-to-one basis,
You can switch fonts.

したがって、フォント自体ではなく、フォント番号だけ
をアプリケーションプログラムが管理すれば良いので、
アプリケーションプログラムの構造が簡単になるという
効果がある。また、フォント番号をROM内のフォント
とアプリケーションプログラムのフォントに区別するこ
とにより、フォント番号の管理という同一の操作性で両
方のフォントを利用することができる。
Therefore, the application program only needs to manage the font number, not the font itself.
This has the effect of simplifying the structure of the application program. Furthermore, by distinguishing the font numbers into fonts in the ROM and fonts in the application program, both fonts can be used with the same operability of font number management.

次に、上記課題2に対応する解決手段によれば、マウス
カーソルでアニメーションを行なうためのマウス表示制
御テーブルをアプリケーションプログラムが用意するこ
とにより、マウスの割り込み処理プログラムが、割り込
み処理期間中にそのテーブルにしたがってマウスフォン
トの切り換えを自動的に行なうことができる。
Next, according to the solution corresponding to Problem 2 above, the application program prepares a mouse display control table for performing animation with the mouse cursor, so that the mouse interrupt processing program can control the mouse display control table during the interrupt processing period. The mouse font can be automatically switched according to the

したがって、アプリケーションプログラムの負担を増大
させずに、マウスカーソルのスムーズなアニメーション
が実現できるので、アプリケーションプログラムが、マ
ウスを用いてユーザインタフェースの向上をはかる場合
に、有効であるという効果がある。
Therefore, smooth animation of the mouse cursor can be realized without increasing the load on the application program, which is effective when the application program uses a mouse to improve the user interface.

また、上記課題3に対応するマウスフォント表示方式を
用いた解決手段によれば、マウスの割り込み処理プログ
ラムから呼ばれるユーザサブルーチンが、マウス状態や
キーボード状態などのシステム状態を調べて、マウスフ
ォントを切り換えることができる。
Further, according to a solution using a mouse font display method corresponding to problem 3 above, a user subroutine called from a mouse interrupt processing program checks the system status such as the mouse status and keyboard status and switches the mouse font. Can be done.

したがって、 ■アプリケーションプログラム本体が常にマウスを監視
してフォントを切り換える必要がないので、アプリケー
ションプログラムのオーバヘッドが少なくなる、 ■マウスフォントの管理部分(ユーザサブルーチン)を
アプリケーションプログラム本体から分離して作成する
ことができるので、アプリケーションプログラムの作成
が容易になる、 という効果が得られる。
Therefore, ■The overhead of the application program is reduced because the application program itself does not need to constantly monitor the mouse and switch fonts. ■The mouse font management part (user subroutine) can be created separately from the application program body. This has the effect of making it easier to create application programs.

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

第1図はマウスフォント番号でマウスを管理するマウス
制御プログラムを用いた場合のアプリケーションプログ
ラムのフローチャート図、第2図はマウスフォントテー
ブル図、第3図はマウス表示制御テーブル図、第4図は
マウス表示制御テーブルを参照する割り込み処理プログ
ラムフローチャート図、第5図はユーザサブルーチンの
リターン値によってマウスフォントを変える割り込み処
理プログラムフローチャート図、第6図はマウスを使用
するコンピュータシステムの構成図、第7図は従来のマ
ウス制御プログラム内の割り込み処理プログラムフロチ
ャート図、第8図はマウスフォントによってアニメーシ
ョンを行なう従来のアプリケーションプログラムのフロ
ーチャート図、第9図はマウス位置によって、マウスフ
ォントを変える従来のアプリケーションプログラムのフ
ローチャート図である。 1・・CPU、2・・CRTCl 3・・陰極線管(CRT)、 4・・マウスインターフェイス、 5・・マウス本体、 6.10・・メモリ、15・・システムバス。
Figure 1 is a flowchart of an application program when using a mouse control program that manages the mouse using mouse font numbers, Figure 2 is a mouse font table diagram, Figure 3 is a mouse display control table diagram, and Figure 4 is a mouse FIG. 5 is a flowchart of an interrupt processing program that refers to a display control table; FIG. 5 is a flowchart of an interrupt processing program that changes the mouse font according to the return value of a user subroutine; FIG. 6 is a configuration diagram of a computer system that uses a mouse; FIG. FIG. 8 is a flowchart of a conventional application program that performs animation using a mouse font. FIG. 9 is a flowchart of a conventional application program that changes the mouse font depending on the mouse position. It is a diagram. 1. CPU, 2. CRTCl 3. Cathode ray tube (CRT), 4. Mouse interface, 5. Mouse body, 6.10. Memory, 15. System bus.

Claims (3)

【特許請求の範囲】[Claims] (1)マウス制御プログラムのアプリケーションプログ
ラムインタフェースにおいて、 アプリケーションプログラムからマウス制御プログラム
に対して、マウスフォントの水平サイズと垂直サイズ及
び実際のフォントデータを複数個定義したマウスフォン
トテーブルをあらかじめ登録しておき、そのフォントに
1対1に対応するマウスフォント番号により、表示する
マウスフオントを切り換えることを特徴とするマウスフ
ォントの表示方式。
(1) In the application program interface of the mouse control program, a mouse font table in which a plurality of horizontal and vertical sizes of mouse fonts and actual font data are defined is registered in advance from the application program to the mouse control program. A mouse font display method characterized in that a mouse font to be displayed is switched according to a mouse font number that corresponds one-to-one to the font.
(2)前記マウス制御プログラムにおいて、マウスフォ
ント番号とそのフォント表示時間のテーブルが前記アプ
リケーションプログラムから指定された場合に、マウス
制御プログラム内の割り込み処理プログラムが、該当フ
ォントを該当期間だけ表示すると、自動的にテーブルの
次に規定されているマウスフォントを規定された時間だ
け表示することを特徴とする特許請求の範囲第1項記載
のマウスフォントの表示方式。
(2) In the mouse control program, when a table of mouse font numbers and their font display times is specified from the application program, the interrupt processing program in the mouse control program automatically displays the corresponding font for the corresponding period. 2. The mouse font display method according to claim 1, wherein the mouse font that is specified next in the table is displayed for a specified period of time.
(3)前記マウス制御プログラムにおいて、マウス割り
込み処理プログラムからコールされるユーザサブルーチ
ンのリターン値としてマウスフォント番号を返すことに
より、割り込み処理中に現在のマウスフォントを変更す
ることを特徴とする特許請求の範囲第1項及び第2項記
載のマウスフォントの表示方式。
(3) In the mouse control program, the current mouse font is changed during interrupt processing by returning a mouse font number as a return value of a user subroutine called from the mouse interrupt processing program. The display method of the mouse font described in ranges 1 and 2.
JP2038318A 1990-02-21 1990-02-21 Mouse font display system Pending JPH03242721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2038318A JPH03242721A (en) 1990-02-21 1990-02-21 Mouse font display system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2038318A JPH03242721A (en) 1990-02-21 1990-02-21 Mouse font display system

Publications (1)

Publication Number Publication Date
JPH03242721A true JPH03242721A (en) 1991-10-29

Family

ID=12521936

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2038318A Pending JPH03242721A (en) 1990-02-21 1990-02-21 Mouse font display system

Country Status (1)

Country Link
JP (1) JPH03242721A (en)

Similar Documents

Publication Publication Date Title
US5808604A (en) Apparatus and method for automatically positioning a cursor on a control
US3534338A (en) Computer graphics system
JP2521035B2 (en) Placing annotations on the display
US4663616A (en) Attachment of lines to objects in interactive draw graphics
US20030067497A1 (en) Method and device for modifying a pre-existing graphical user interface
JPH06208448A (en) Method for supplying set-browser having browser item to application and computer control display device therefor
KR19990063614A (en) Graphical user interface system of multi-user / multi pointing device
JPH01250129A (en) Display screen operating system
EP0297772A2 (en) Mouse pointer with switchable emulation mode
CN109710343B (en) Method, device and equipment for switching windows of computer desktop and storage medium
US5812804A (en) Display apparatus for tossing windows
WO1992004682A1 (en) Method and apparatus for identifying wait states and for providing a wait cursor in a computer system
JPH03242721A (en) Mouse font display system
US5265251A (en) Mechanism for allowing a single operation to shift the focus between user applications having direct hardware level access to multiple displays in a virtual terminal environment
Foley A tutorial on satellite graphics systems
JPS62166436A (en) Data processing system
JP3284272B2 (en) Data input method and device / data input program recording medium
JPH04328626A (en) Information processor
EP4343522A1 (en) Live-streaming interface display method and apparatus, and device, storage medium and program product
EP0441509B1 (en) Method and system for single-operation focus shift between user applications in a virtual terminal environment
JPH02231626A (en) Data processor containing multi-window processing function
JP2966531B2 (en) Window moving method
JPS63298432A (en) Window operating and processing system
JP2520485B2 (en) Dragging and rubber band independent display system
JPH0916314A (en) Editing processing method