JPH09244864A - Control fast drawing system for gui application - Google Patents

Control fast drawing system for gui application

Info

Publication number
JPH09244864A
JPH09244864A JP8050559A JP5055996A JPH09244864A JP H09244864 A JPH09244864 A JP H09244864A JP 8050559 A JP8050559 A JP 8050559A JP 5055996 A JP5055996 A JP 5055996A JP H09244864 A JPH09244864 A JP H09244864A
Authority
JP
Japan
Prior art keywords
control
controls
displayed
memory device
event
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
JP8050559A
Other languages
Japanese (ja)
Inventor
Miyuki Oohama
美雪 大浜
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP8050559A priority Critical patent/JPH09244864A/en
Publication of JPH09244864A publication Critical patent/JPH09244864A/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 display plural controls together at a time while event procedures are described in the respective controls in a form which has the controls. SOLUTION: This system is equipped with a prepaint method 3 which draws the controls included in the form to be displayed on a memory device 4 in form units while the event procedures described in the controls are held, and the form to be displayed is read out of the memory device 4 and drawn, so that the controls included in the form are displayed together at a time while having the event procedures.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、GUIアプリケー
ションのフォーム切り替え時におけるコントロールの描
画を高速に行う方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for drawing a control at high speed when switching a form of a GUI application.

【0002】[0002]

【従来の技術】GUIアプリケーションでは、マウスや
キーボード入力、タイマ割り込み等のイベントに対して
イベントプロシジャが起動される。これをイベント駆動
と呼ぶ。イベント駆動プログラミングでは、フォームに
コントロールを配置し、各コントロールにイベントプロ
シジャを記述する。フォームとはウインドウおよびダイ
アログの総称であり、コントロールとは、属性を示す一
連のプロパティを持ち、イベントを認識するフォーム上
に配置されるオブジェクトを指す。
2. Description of the Related Art In a GUI application, an event procedure is activated in response to an event such as mouse or keyboard input or timer interrupt. This is called event-driven. In event-driven programming, you place controls on a form and write an event procedure for each control. A form is a generic term for windows and dialogs, and a control is an object that has a series of properties indicating attributes and is arranged on a form that recognizes an event.

【0003】コントロールには、テキストボックス等の
ようにフォーム上に表示されるグラフィカルなコントロ
ールと、タイマーのように表示されないコントロールが
ある。全てのグラフィカルコントロールの描画は、描画
要求メッセージに対応して行われる。描画要求メッセー
ジは、フォームを開く時や、フォームの移動によって、
今まで隠れていたフォームが見えるようになった時にO
Sが発生させる場合と、アプリケーションが再描画関数
(メソッド)を呼び出すことによって間接的に発生させ
る場合がある。
Controls include a graphical control that is displayed on a form such as a text box and a control that is not displayed like a timer. Drawing of all graphical controls is performed in response to the drawing request message. The drawing request message is displayed when the form is opened or when the form is moved.
O when you can see the hidden form
There are cases where S is generated, and cases where S is generated indirectly by calling a redrawing function (method).

【0004】このようにしてコントロールの描画は行わ
れているが、描画要求メッセージは個々のコントロール
に対して発行される。メッセージはキューで順次的に処
理されるため、コントロールの描画も順次的に行われる
ことになる。このため、フォーム上に多数のグラフィカ
ルコントロールを持つ場合、コントロールが順次表示さ
れることで、コントロールの表示に時間がかかり、スム
ーズに行われないという現象が発生する。
Although the control is drawn in this manner, the drawing request message is issued to each control. Since the messages are processed in the queue sequentially, the drawing of the control is also performed sequentially. Therefore, when a large number of graphical controls are provided on the form, the controls are sequentially displayed, which causes a problem that it takes time to display the controls and the controls are not smoothly performed.

【0005】この現象を避けるため、従来は複数の画面
オブジェクト、例えばボタンを、1つのコントロールで
実現する方式が取られていた。例えば、フォームにn個
のボタンが必要な場合、n個のボタンが配置されたイメ
ージを持つイメージコントロールを1つ用意する。この
イメージコントロールに対する1度の描画処理で、n個
のボタンが一斉に描画される。
In order to avoid this phenomenon, conventionally, a method has been adopted in which a plurality of screen objects such as buttons are realized by one control. For example, when the form requires n buttons, one image control having an image in which n buttons are arranged is prepared. In one drawing process for this image control, n buttons are simultaneously drawn.

【0006】しかしながら、この場合、個々のボタンに
対応するコントロールは存在しないので、クリック等の
マウスイベントはイメージコントロールが受けるように
なる。このため、クリックであれば、クリックの位置か
ら指定されたボタンを算出し、そのボタンが押された時
の処理を行うというクリックイベントプロシジャを作成
して、イメージコントロールに記述する必要があり、こ
れによりn個のボタンをシミュレートしていた。
However, in this case, since there is no control corresponding to each button, the mouse event such as a click is received by the image control. Therefore, if it is a click, it is necessary to create a click event procedure that calculates the specified button from the click position and performs the processing when the button is pressed, and describe it in the image control. Simulates n buttons.

【0007】[0007]

【発明が解決しようとする課題】上述したように、n個
のボタンを持つフォームの場合、n個のボタンが配置さ
れたイメージを持つイメージコントロールを用意するこ
とで、このイメージコントロールに対する1度の描画処
理で、n個のボタンを一斉に表示することができる。
As described above, in the case of a form having n buttons, by preparing an image control having an image in which n buttons are arranged, the image control can be performed once for this image control. In the drawing process, n buttons can be displayed all at once.

【0008】しかしながら、この方式では、表示がスム
ースに行われる反面、コントロールを用いたイベント駆
動プログラミングの良さを犠牲にしているという問題が
ある。すなわち、コントロールが予め提供している機能
までアプリケーションプログラムが実装しなければなら
ない。例えば、クリック時にボタンが押されたように変
化する処理を、イメージコントロールのイベントプロシ
ジャとして新たに作成してイメージコントロールに記述
しなければならない。
However, in this method, although the display is performed smoothly, there is a problem that the goodness of the event driven programming using the control is sacrificed. That is, the application program must implement the functions provided by the control in advance. For example, a process that changes like a button being pressed when clicked must be newly created as an image control event procedure and described in the image control.

【0009】また、コントロールの配置にカスタマイズ
性がない。例えば、ボタンの配置に変更があった場合、
新しい配置に合わせて、指定されたボタンを算出する処
理を修正しなければならない。
Further, the layout of the controls is not customizable. For example, if there is a change in the button layout,
The process of calculating the specified button must be modified for the new layout.

【0010】[0010]

【課題を解決するための手段】上述した課題を解決する
ため、本発明は、表示しようとしているフォームに含ま
れるコントロールを、該コントロールに記述されたイベ
ントプロシジャを持たせたままフォーム単位でメモリデ
バイス上に描画するプレペイントメソッドを備え、表示
すべきフォームを前記メモリデバイスから呼び出して描
画することで、該フォームに含まれるコントロールをイ
ベントプロシジャを持たせた状態で一斉に表示するもの
である。
In order to solve the above-mentioned problems, the present invention provides a memory device in a form unit with a control included in a form to be displayed while having an event procedure described in the control. A prepainting method for drawing on top is provided, and a form to be displayed is called from the memory device and drawn, so that the controls included in the form are displayed all together with an event procedure.

【0011】[0011]

【発明の実施の形態】図1は本発明のGUIアプリケー
ションのコントロール高速描画方式の実施の形態の一例
を示すブロック図である。フォーム1には、画面オブジ
ェクトの数だけコントロール2を用意する。あるフォー
ムmにおいてn個の画面オブジェクトがある場合、それ
に対応するn個のコントロール2を用意する。ここで、
各コントロール2には所定のイベントプロシジャが記述
してある。このようなフォームを必要数作成して、ハー
ドディスク等に格納しておく。
1 is a block diagram showing an example of an embodiment of a control high-speed drawing system of a GUI application of the present invention. Form 2 has as many controls 2 as the number of screen objects. When there are n screen objects in a certain form m, n control 2 corresponding to them are prepared. here,
A predetermined event procedure is described in each control 2. A required number of such forms are created and stored in a hard disk or the like.

【0012】あるフォームmを表示するために、該当フ
ォームmをハードディスク等からロードした段階で、こ
のフォームm上の全コントロール2に対してプレペイン
ト・メソッド3を呼び出し、表示しようとしているフォ
ームmがアクティブになった時の画面をこのプレペイン
ト・メソッド3でメモリデバイス4上に構築する。ここ
で、プレペイント・メソッド3とは、メモリデバイス4
を仮想画面に見立ててコントロール2の描画を行うメソ
ッドで、各コントロール2に記述してあるイベントプロ
シジャもコントロール2に合わせてメモリデバイス4上
に表現する。なお、表示しようとしているフォームが複
数ある場合は、各フォーム毎にそのフォームがアクティ
ブになったときの画面をメモリデバイス4上に構築す
る。
In order to display a certain form m, when the corresponding form m is loaded from the hard disk or the like, the prepaint method 3 is called for all the controls 2 on this form m, and the form m to be displayed is The screen when activated is built on the memory device 4 by this prepainting method 3. Here, the prepaint method 3 is the memory device 4
Is used as a virtual screen to draw the control 2, and the event procedure described in each control 2 is also expressed on the memory device 4 in accordance with the control 2. When there are a plurality of forms to be displayed, a screen when each form is activated is constructed on the memory device 4 for each form.

【0013】このように、メモリデバイス4への描画処
理をメソッドの形で提供しておくと、コントロールの位
置、カラーやフォントといった描画属性はプロパティで
管理されているので、プロパティに変更があってもメソ
ッド呼び出しは影響を受けない。これにより、プログラ
マはコントロールのプロパティを意識することなくプロ
グラムでき、フォームのデザインに影響されないプログ
ラムが可能になる。
As described above, when the drawing process to the memory device 4 is provided in the form of a method, the drawing control attributes such as the position of the control, the color and the font are managed by the property, so that the property may be changed. However, the method call is not affected. This allows the programmer to program without worrying about the properties of the control, allowing the programming to be independent of the form design.

【0014】そして、フォームmの表示は、コントロー
ル2を含む形で前記メモリデバイス4上に構築した該当
フォームmのイメージを画面5に描画することで行う。
このとき、描画メソッド6はメモリデバイス4からフォ
ーム1毎にイメージを呼び出して画面に描画するが、各
フォーム1にはそのフォーム1に属するコントロール2
が含まれているので、あるフォームmを画面に表示する
と、そのフォームmに含まれるコントロール2は一斉に
表示される。従来は、フォームがアクティブになった時
に画面にコントロールを描画するため、コントロールが
順次現れるという現象が発生していたが、本実施の形態
では、フォーム1がアクティブになる前にメモリデバイ
ス4にコントロール2を含んだフォーム1の表示イメー
ジを用意するので、コントロール2が幾つあろうと一斉
に表示できる。
The display of the form m is performed by drawing on the screen 5 an image of the corresponding form m constructed on the memory device 4 including the control 2.
At this time, the drawing method 6 calls an image for each form 1 from the memory device 4 and draws it on the screen, but each form 1 has a control 2 belonging to the form 1.
Therefore, when a certain form m is displayed on the screen, the controls 2 included in the form m are displayed all at once. In the past, since a control was drawn on the screen when the form became active, the phenomenon that the controls appeared one after another occurred. However, in the present embodiment, the control is performed on the memory device 4 before the form 1 becomes active. Since the display image of the form 1 including 2 is prepared, it is possible to display all the controls 2 at once.

【0015】このとき、各コントロール2には所定のイ
ベントプロシジャが記述してあるので、フォーム1表示
後のマウスイベントの処理は、通常通り個々のコントロ
ール2が行い、アプリケーションによるコントロールの
シミュレーションは不要である。
At this time, since a predetermined event procedure is described in each control 2, each control 2 normally processes the mouse event after the display of the form 1, and the control simulation by the application is unnecessary. is there.

【0016】[0016]

【発明の効果】以上説明したように、本発明は、GUI
アプリケーションの構成要素であるグラフィカルコント
ロールに対してプレペイント・メソッドを用意して、フ
ォームの表示前に、メモリデバイスにコントロールを含
んだフォームの表示イメージを構築し、フォーム表示時
には、前記メモリデバイス上に構築したフォームの表示
イメージを画面に描画することとしたので、コントロー
ルが複数存在しても、一斉に表示可能である。
As described above, the present invention provides a GUI.
A prepaint method is prepared for the graphical control that is a component of the application to build a display image of the form that includes the control in the memory device before displaying the form. When displaying the form, the form is displayed on the memory device. Since it was decided to draw the display image of the constructed form on the screen, even if there are multiple controls, they can be displayed all at once.

【0017】また、各コントロールにはイベントプロシ
ジャが記述されるので、コントロールが予め提供してい
る機能を活用できる。
Further, since the event procedure is described in each control, the function provided in advance by the control can be utilized.

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

【図1】本発明のGUIアプリケーションのコントロー
ル高速描画方式の実施の形態の一例を示すブロック図
FIG. 1 is a block diagram showing an example of an embodiment of a control high-speed drawing system of a GUI application of the present invention.

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

1 フォーム 2 コントロール 3 プレペイント・メソッド 4 メモリデバイス 1 Form 2 Control 3 Prepainting method 4 Memory device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 表示しようとしているフォームに含まれ
るコントロールを、該コントロールに記述されたイベン
トプロシジャを持たせたままフォーム単位でメモリデバ
イス上に描画するプレペイントメソッドを備え、 表示すべきフォームを前記メモリデバイスから呼び出し
て描画することで、該フォームに含まれるコントロール
をイベントプロシジャを持たせた状態で一斉に表示する
ことを特徴とするGUIアプリケーションのコントロー
ル高速描画方式。
1. A prepainting method for drawing a control included in a form to be displayed on a memory device on a form-by-form basis with the event procedure described in the control being provided, and the form to be displayed is described above. A high-speed drawing method for a control of a GUI application, which is characterized in that the controls included in the form are displayed all at once with an event procedure by calling and drawing from the memory device.
JP8050559A 1996-03-07 1996-03-07 Control fast drawing system for gui application Pending JPH09244864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8050559A JPH09244864A (en) 1996-03-07 1996-03-07 Control fast drawing system for gui application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8050559A JPH09244864A (en) 1996-03-07 1996-03-07 Control fast drawing system for gui application

Publications (1)

Publication Number Publication Date
JPH09244864A true JPH09244864A (en) 1997-09-19

Family

ID=12862374

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8050559A Pending JPH09244864A (en) 1996-03-07 1996-03-07 Control fast drawing system for gui application

Country Status (1)

Country Link
JP (1) JPH09244864A (en)

Similar Documents

Publication Publication Date Title
US20030179240A1 (en) Systems and methods for managing virtual desktops in a windowing environment
JPH06301505A (en) Computer-controlled display system
JPH08286875A (en) Method and equipment for processing of graphic user interface
US6522335B2 (en) Supplying data to a double buffering process
JPH06103013A (en) Method for enlarging/reducing window
JPH09244864A (en) Control fast drawing system for gui application
CN106716364A (en) Background application display method, apparatus, electronic device, and computer program product
JPH04319775A (en) Cad system
EP3276474A1 (en) View port array of graphic user interface components
JPS6324417A (en) Composite document processor
JPH06289843A (en) Image display processor
JP2932990B2 (en) LSI layout data drawing device
JP2503995B2 (en) Multi-window display method
JPH09128179A (en) Method for controlling display of table format data
JPH07110747A (en) Data display method
JP2024076005A5 (en)
JPH0321821A (en) Picture display device
JP2018025850A (en) Display control device, display control system, and display control method
JPH03176716A (en) Electronics
JPH1027086A (en) Display device
JPH03214268A (en) Graphic restoring/displaying system
CN119996561A (en) Message display method, device and electronic equipment
JPH04295917A (en) Pointing device
JPH0612212A (en) Multi-window display method
JPH04141760A (en) Interactive system design system