CN1318947C - Generation method of soft keyboard - Google Patents

Generation method of soft keyboard Download PDF

Info

Publication number
CN1318947C
CN1318947C CN 200310117500 CN200310117500A CN1318947C CN 1318947 C CN1318947 C CN 1318947C CN 200310117500 CN200310117500 CN 200310117500 CN 200310117500 A CN200310117500 A CN 200310117500A CN 1318947 C CN1318947 C CN 1318947C
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
generation
method
soft
keyboard
generation method
Prior art date
Application number
CN 200310117500
Other languages
Chinese (zh)
Other versions
CN1558309A (en )
Inventor
吴太和
Original Assignee
威艾德通讯技术(深圳)有限公司
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
Grant date

Links

Abstract

本发明公开了一种软键盘的生成方法,该软键盘是基于Linux系统的Microwin图形界面的输入工具,该方法包括以下步骤:打开与Nano-X服务器的连接;生成一个主窗口:一旦用户要开始使用软键盘,那么则在屏幕上生成任意一个Microwin主窗口作为软键盘的基窗口;接收窗口事件:Nano-X服务器循环捕获该窗口上的事件,当触摸屏被按下的时候,Nano-X将捕获该窗口上的事件,这个事件从按下的坐标被解释为对窗口的鼠标方位的点击,然后通过Nano-X分类各个点击的消息。 The present invention discloses a method for generating a soft keyboard, soft keyboard which is based on graphical input tool Microwin Linux system, the method comprising the steps of: opening a connection to the server Nano-X; generating a main window: Once the user to start using the soft keyboard, then it generates any one Microwin main window on the screen as a soft keyboard group window; receiving window events: Nano-X server event on the window loop capture, when the touch screen is pressed when, Nano-X the capture events on the window, press the coordinates from this event is interpreted as mouse clicks on the orientation of the window, then click on the Nano-X classification of each message. 该软键盘可以拖动,可以组合,且可以实现标准的88键位的软键盘,且该软键盘性能稳定,可靠,操作使用方便,占用内存小,速度快,因此使用该软键盘可便于信息的输入。 The soft keyboard can drag, may be combined and may be implemented in a standard 88-key keyboard, the soft keyboard and stable performance, reliable, easy to use, small memory footprint, fast, and therefore may facilitate the use of the soft keyboard information input of.

Description

一种软键盘的生成方法 A soft keyboard method for generating

【技术领域】本发明涉及一种软键盘,尤其涉及一种软键盘的生成方法。 TECHNICAL FIELD The present invention relates to a soft keyboard, in particular, it relates to a method for generating a soft keyboard.

【背景技术】传统的多媒体电话的键盘是采用外接的普通88键位的键盘,但此类型键盘的使用效率低,比较累赘,故障也比较多。 BACKGROUND Multimedia Telephony conventional is the use of an external keyboard ordinary keyboard 88 keys, but the low efficiency of this type of keyboard, more cumbersome, but also more fault. 随着多媒体电话的发展,软键盘的应用越来越普遍,而目前多媒体电话上所用的软键盘键位太少,功能单一。 With the development of multimedia phones, soft keyboard more and more common, and now the soft keyboard keys on multimedia phones used too little, single function. 例如专利申请号为00124970.3的中国专利文献公开了一种智能网络电话,该电话具有触摸屏和软键盘,该软键盘有数字键盘和英文+数字键盘,根据功能不同,数字占1行,用于电话输入,英文为PPSM提供的标准键盘。 For example, as disclosed in Chinese Patent Application No. 00124970.3 in Patent Document an intelligent telephone network, the telephone with a touch screen and a keyboard, which keyboard has a numeric keypad and soft English + numeric keypad, depending on the function, representing a row number for phone input, standard English as PPSM provide keyboard. 但是,该软键盘只能固定在一个位置,而不能拖动,因此会出现软键盘在屏幕上妨碍浏览的问题;另外该软键盘不是88键位的键盘,其键位太少,且不能组合,因此输入信息不方便。 However, the soft keyboard can only be fixed in one place, not drag, so there will be a soft keyboard on the screen obtrusive problem; in addition to the soft keyboard instead of the 88-key keyboard, its keys too small, and can not be combined , the input information is not convenient.

【发明内容】为了克服现有的软键盘不能拖动,键位太少,功能单一而导致输入信息不方便的缺点,本发明提供一种软键盘的生成方法,通过该方法生成的软键盘可以拖动,且可以是标准的88键位的软键盘,因此使用该软键盘便于信息的输入。 SUMMARY OF THE INVENTION To overcome the conventional soft keyboard can not drag, too few keys, input information resulting functional single inconvenient disadvantages, the present invention provides a method for generating a soft keyboard generated by this method can be soft keyboard drag, and may be a standard 88-key keyboard, and thus facilitates the soft keyboard using the input information.

为实现本发明的目的,本发明所采用的技术方案是:提供一种软键盘的生成方法,其特征在于该软键盘是基于Linux系统的Microwin图形界面的输入工具,该方法包括以下步骤:步骤一.打开与Nano-X服务器的连接,向Nano-X服务器申请内存或者通讯信道; For purposes of this invention, the technical solutions used in the present invention are: to provide a method of generating a soft keyboard, characterized in that the soft keyboard input is based on a graphical interface tool Microwin Linux system, the method comprising the following steps: a Nano-X opens a connection to the server, or communication channel for memory to Nano-X server;

步骤二.生成一个主窗口:当软键盘的应用程序被某个事件触发以后,软键盘被启动,在触摸屏的屏幕显示出来,一旦用户要开始使用软键盘,那么则在屏幕上生成任意一个Microwin主窗口,以保证接收Microwin事件,初始化该窗口,作为软键盘的基窗口;步骤三.接收窗口事件:循环捕获该窗口上的事件,这是由Microwin的Nano-X服务器所捕获的,当触摸屏被按下的时候,Nano-X将捕获该窗口上的事件,这个事件从按下的坐标被解释为对窗口的鼠标方位的点击,然后通过Nano-X分类各个点击的消息。 Step Two generate a main window: When the soft keyboard application triggered an event, the soft keyboard is activated, displayed on the touch screen of the screen, once the user to start using the software keyboard, then it generates arbitrary on the screen a Microwin the main window, to ensure receiving Microwin event, the initialization of the window, as a soft keyboard group window; step three receiving window events: cycle capture events on the window, which is Microwin of Nano-X server captured, when the touch screen when pressed, Nano-X will capture events on the window, press the coordinates from this event is interpreted as mouse clicks on the orientation of the window, then click on the Nano-X classification of each message.

本发明的有益效果是,由于本发明的软键盘是基于Linux系统的Microwin图形界面的输入工具,因此该软键盘可以拖动,可以组合,且可以实现标准的88键位的软键盘,且该软键盘性能稳定,可靠,操作使用方便,占用内存小,速度快,因此使用该软键盘可便于信息的输入。 Advantageous effects of the present invention is that, due to the soft keyboard input of the present invention is based on a graphical interface tool Microwin Linux system, so that the soft keyboard can drag, may be combined and may be implemented in a standard 88-key keyboard, and the soft keyboard performance stable, reliable, easy to use, small memory footprint, fast, and therefore may facilitate the use of the soft keyboard input information.

【附图说明】图1是本发明软键盘的生成方法的流程图。 BRIEF DESCRIPTION FIG. 1 is a flowchart of a method of generating a soft keyboard according to the present invention.

图2是本发明的软键盘的普通键盘图。 FIG 2 is a soft keyboard according to the present invention. FIG ordinary keyboard.

图3是本发明的软键盘的ctrl键盘图。 FIG 3 is a soft keyboard ctrl keyboard of the present invention FIG.

图4是本发明的软键盘的num键盘图。 FIG 4 is a soft keyboard according to the present invention, FIG num keyboard.

图5是本发明的软键盘的Shift键盘图。 FIG 5 is a soft keyboard according to the invention the keyboard Shift FIG.

【具体实施方式】本发明的软键盘是在多媒体电话上所使用的Linux系统的Microwin图形界面基础上开发出来的输入工具。 DETAILED DESCRIPTION OF EMBODIMENTS The present invention is a soft keyboard developed Microwin GUI based on the Linux system used for multimedia telephony input tool. 该软键盘性能稳定,可靠,操作使用方便,占用内存小,速度快。 The soft keyboard performance stable, reliable, easy to use, small memory footprint, fast.

请参阅图1,本发明软键盘的生成方法包括以下步骤:步骤一.打开与Nano-X服务器的连接:由于Microwin本身是一个服务器/客户机结构,那么软键盘也作为一个标准的客户向Nano-X服务器发送连接,申请内存或者通讯信道;步骤二.生成一个主窗口:当软键盘的应用程序被某个事件触发以后(例如GTK的某个事件或者是其他窗口向Microwin所发送的一个消息),软键盘被启动,在触摸屏的屏幕左上角显示出来。 Please refer to FIG. 1, a software keyboard of the present invention generating method comprising the following steps: a connecting opening and Nano-X server: Since Microwin itself is a server / client architecture, the soft keyboard as a standard client to Nano when a soft keyboard message application an event is triggered (e.g., an event or GTK is sent to the other window Microwin of: generating a main window in step two; server sends the -X-connections, the memory or communication channels. ), the soft keyboard is activated, displayed in the upper left corner of the touch screen screen. 一旦用户要开始使用软键盘,那么必须在屏幕上生成任意一个Microwin主窗口,以保证接收Microwin事件,初始化该窗口,作为软键盘的基窗口,当然这个窗口可能是任意一个GTK的控件,例如输入框,普通窗口,各种其他控件等;步骤三.接收窗口事件:循环捕获该窗口上的事件,这是由Microwin的Nano-X服务器所捕获的,当触摸屏被按下的时候,Nano-X将捕获该窗口上的事件,这个事件从按下的坐标被解释为对窗口的鼠标方位的点击,然后通过Nano-X分类各个点击的消息,分成窗口关闭事件,按键事件,窗口暴露事件,鼠标移动事件,对于软键盘而言,只有按键事件需要进行处理,取当前坐标,根据坐标范围,求得该处字符扫描码。 Once the user to start using the software keyboard, it must be generated on the screen any Microwin main window, to ensure receiving Microwin event, the initialization of the window, as a soft keyboard group window, of course, the window may be any of a GTK control, such as input At block, normal window, a variety of other controls and the like; step three receiving window events: cycle event captured on the window, which is made of Nano-X server Microwin captured, when the touch screen is pressed when, Nano-X event captured on the window, from the press event is interpreted as a coordinate position of the mouse clicks on the window, and then classified by each message Nano-X clicks into window closing event, the key event, the event window is exposed, the mouse motion events, for the soft keyboard, the key event only need to be processed, taking the current coordinate, the coordinate range, there is obtained the character scan code. 如果是窗口关闭事件,则关闭服务连接,销毁窗口;如果是按键事件,则取当前坐标范围,求得该处字符扫描码;如果是窗口暴露事件,则在窗口中绘软键盘图;如果是鼠标移动事件,则隐藏原窗口,在当前位置显示窗口;步骤四.判别扫描码:当处理按键事件时,根据所判别的扫描码作出相应的处理:例如扫描码为普通键,则取得当前焦点窗口,向该窗口发字符输入事件;扫描码为Shift键,则显示Shift键盘图;扫描码为num键,则显示num键盘图;扫描码为ctrl键,则显示ctrl键盘图;扫描码为intl键,则表示备用,无操作。 If window closing event, the service connection is closed, the window is destroyed; if the key event is a command, the current coordinate range, there is obtained the character scan code; if it is exposed to the window event, the drawing in FIG soft keyboard window; if mouse move events, hide the original window, the display window at the current position; step four is determined scan code: when processing the key event, make appropriate processing according to the determined scan code: for example, the scan code for the general key, obtains the current focus window, to send a character input window event; scan code for the Shift key, the figure shows the keyboard Shift; key scan code num, num FIG keyboard is displayed; ctrl key scan code, FIG ctrl keyboard is displayed; scan code intl key, said standby, no operation. 处理完毕以后,键盘处理流程返回步骤三,继续检测触摸屏被按下事件。 After processing is complete, the keyboard process flow returns to Step three, continue to detect touch screen is pressed event.

图2、3、4、5分别是本发明的软键盘的普通键盘图、按下ctrl以后的ctrl键盘图、按下数字键以后的num键盘图和按下Shift以后的Shift键盘图。 FIG 2,3,4,5 are soft keyboard of the present invention FIG ordinary keyboard, the keyboard press ctrl ctrl FIG later, after pressing the numeric key is pressed and FIG num keyboard after the keyboard Shift Shift FIG. 多媒体电话使用软键盘输入信息时,则可根据触摸屏上显示的软键盘进行输入。 Multimedia phones when using the soft keyboard to enter information, according to the soft keyboard input can be displayed on the touch screen.

Claims (6)

  1. 1.一种软键盘的生成方法,其特征在于该软键盘是基于Linux系统的Microwin图形界面的输入工具,该方法包括以下步骤:步骤一.打开与Nano-X服务器的连接,向Nano-X服务器申请内存或者通讯信道;步骤二.生成一个主窗口:当软键盘的应用程序被某个事件触发以后,软键盘被启动,在触摸屏的屏幕显示出来,一旦用户要开始使用软键盘,那么则在屏幕上生成任意一个Microwin主窗口,以保证接收Microwin事件,初始化该窗口,作为软键盘的基窗口;步骤三.接收窗口事件:循环捕获该窗口上的事件,这是由Microwin的Nano-X服务器所捕获的,当触摸屏被按下的时候,Nano-X将捕获该窗口上的事件,这个事件从按下的坐标被解释为对窗口的鼠标方位的点击,然后通过Nano-X分类各个点击的消息。 CLAIMS 1. A method for generating a soft keyboard, which is characterized in that the soft keyboard input tool GUI based Microwin Linux system, the method comprising the steps of: a step to open a connection to the server Nano-X, the Nano-X server application memory or communication channel; step two creates a main window: when the soft keyboard application triggered an event, the soft keyboard is activated, displayed on the touch screen of the screen, once the user to start using the software keyboard, then the generating on the screen any Microwin main window, to ensure receiving Microwin event, the initialization of the window, as a soft keyboard group window; step three receiving window events: cycle capture events on the window, which is Microwin of Nano-X. server captured, when the touch screen is pressed when, Nano-X will capture events on the window, press the coordinates from this event is interpreted as mouse clicks on the orientation of the window, and then click each classification Nano-X news.
  2. 2.根据权利要求1所述的方法,其特征在于:步骤二所述的软键盘的应用程序是由GTK的某个事件或者是其他窗口向Microwin所发送的一个消息触发。 2. The method according to claim 1, wherein: said step of two soft keyboard application is a message sent by a certain event to Microwin GTK windows or other trigger.
  3. 3.根据权利要求1所述的方法,其特征在于:步骤二所述的窗口是任意一个GTK的控件。 3. The method according to claim 1, wherein: said two-step window is a GTK any control.
  4. 4.根据权利要求1所述的方法,其特征在于:步骤三所述的Nano-X捕获的窗口上的事件包括窗口关闭事件,按键事件,窗口暴露事件,鼠标移动事件,对于软键盘而言,只有按键事件需要进行处理,取当前坐标,根据坐标范围,求得该处字符扫描码;如果是窗口关闭事件,则关闭服务连接,销毁窗口;如果是按键事件,则取当前坐标范围,求得该处字符扫描码;如果是窗口暴露事件,则在窗口中绘软键盘图;如果是鼠标移动事件,则隐藏原窗口,在当前位置显示窗口。 4. The method according to claim 1, wherein: a window event on the three step comprises Nano-X capture window closing event, the key event, the event window is exposed, the mouse movement events, for the purposes of the soft keyboard only key events need to be processed, taking the current coordinate, the coordinate range, there is obtained the character scan code; if window closing event, the service connection is closed, the window is destroyed; if the key event is a command, the current coordinate range, seek where the character scan code obtained; if it is exposed to the window event in the window is painted FIG soft keyboard; mouse move events if it is, the original window is hidden, the display window at the current position.
  5. 5.根据权利要求4所述的方法,其特征在于:当处理按键事件时,根据所判别的扫描码作出相应的处理,处理完毕以后,键盘处理流程返回步骤三,继续检测触摸屏被按下事件。 5. The method as claimed in claim 4, wherein: when a key event processing, make corresponding processing according to the determination of the scan code, after the processing is completed, the processing flow returns to step three keyboard, a touch screen is pressed continuously detected event .
  6. 6.根据权利要求5所述的方法,其特征在于:当该扫描码为普通键时,则取得当前焦点窗口,向该窗口发字符输入事件;当扫描码为Shift键时,则显示Shift键盘图;当扫描码为num键时,则显示num键盘图;当扫描码为ctrl键时,则显示ctrl键盘图;当扫描码为intl键时,则表示备用,无操作。 6. The method as claimed in claim 5, wherein: when the normal key code is scanned, to obtain the current focus window, the window to send a character input event; scan code when the Shift key, the keyboard is displayed Shift FIG; num when the key code is scanned, the display of FIG keyboard num; scan code when the key is ctrl, ctrl FIG keyboard is displayed; scan code when the key is intl, said standby, no operation.
CN 200310117500 2003-12-19 2003-12-19 Generation method of soft keyboard CN1318947C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200310117500 CN1318947C (en) 2003-12-19 2003-12-19 Generation method of soft keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200310117500 CN1318947C (en) 2003-12-19 2003-12-19 Generation method of soft keyboard

Publications (2)

Publication Number Publication Date
CN1558309A true CN1558309A (en) 2004-12-29
CN1318947C true CN1318947C (en) 2007-05-30

Family

ID=34337832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200310117500 CN1318947C (en) 2003-12-19 2003-12-19 Generation method of soft keyboard

Country Status (1)

Country Link
CN (1) CN1318947C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100487637C (en) 2007-04-30 2009-05-13 陈灿华 Touching external connection keyboard
US9041653B2 (en) 2008-07-18 2015-05-26 Htc Corporation Electronic device, controlling method thereof and computer program product
CN102141872B (en) * 2010-02-03 2016-05-04 康佳集团股份有限公司 One kind of a method to close the window, and embedded systems
CN102637127B (en) * 2012-02-24 2015-04-08 青岛海信电器股份有限公司 Method for controlling mouse modules and electronic device
CN103106030B (en) * 2013-01-22 2016-07-06 京东方科技集团股份有限公司 A soft keyboard display method, apparatus and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1127896A (en) * 1994-12-29 1996-07-31 三星电子株式会社 Portable information terminal and method for input ting information using soft keyboard
US6562078B1 (en) * 1999-06-29 2003-05-13 Microsoft Corporation Arrangement and method for inputting non-alphabetic language

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1127896A (en) * 1994-12-29 1996-07-31 三星电子株式会社 Portable information terminal and method for input ting information using soft keyboard
US6562078B1 (en) * 1999-06-29 2003-05-13 Microsoft Corporation Arrangement and method for inputting non-alphabetic language

Also Published As

Publication number Publication date Type
CN1558309A (en) 2004-12-29 application

Similar Documents

Publication Publication Date Title
US5903667A (en) Handwritten input information processing apparatus and handwritten input information system using the same
US20070178891A1 (en) Remote control of electronic devices
US7245291B2 (en) System and method for internet appliance data entry and navigation
US7004394B2 (en) Portable terminal capable of invoking program by sign command and program invoking method therefor
US20080309617A1 (en) Graphical communication user interface
US20140362274A1 (en) Device, method, and graphical user interface for switching between camera interfaces
CN101132571A (en) Method and system for displaying and operating remote computer on mobile phone
CN101388041A (en) Browsers page navigation method and system for handhold terminal
US6801663B2 (en) Method and apparatus for producing communication data, method and apparatus for reproducing communication data, and program storage medium
US20070205988A1 (en) Touch sensitive keypad and user interface
CN101634935A (en) Method and device for inputting characters by touch screen
CN102681829A (en) Screenshot method, device and communication client
CN101542424A (en) List scrolling and document translation, scaling, and rotation on a touch-screen display
CN103067577A (en) Terminal and information display method
US20070205992A1 (en) Touch sensitive scrolling system and method
US20060092268A1 (en) Teleconference method with a shared working space
US20090249219A1 (en) Providing a Shared Desktop Interface of Multiple Computer Terminals
CN1867012A (en) Method for remote controlling computer based on intelligent mobile phone platform
US20070205991A1 (en) System and method for number dialing with touch sensitive keypad
US20070205990A1 (en) System and method for text entry with touch sensitive keypad
CN102880414A (en) Terminal equipment and method for starting program rapidly
US20030177445A1 (en) System for describing markup language for mobile use, and information processing apparatus and program for generating display content
CN101943995A (en) Method and device for processing display information of mobile terminal and touch screen thereof
US20080172621A1 (en) Augmenting service description with expected usage information
CN102323875A (en) Mouse event-based multi-point touch gesture interaction method and middleware

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted
C19 Lapse of patent right due to non-payment of the annual fee