This application claims the benefit of priority to GB Application No. 1118991.7 filed on Nov. 3, 2011, the contents of which are hereby incorporated by reference.
The present invention relates to graphical user interfaces. More particularly, it relates to improvements to window creation in graphical user interfaces.
Since the nineteen eighties, the predominant means of human-computer interaction has been via a graphical user interface (GUI). The dominant form of GUI has been known by the acronym WIMP after its main elements: window; icon; menu; and pointing device. In this form of interaction, the computer operating system provides a display representing a desktop metaphor with icons representing links to objects such as directories and applications. On selection by a user of an appropriate icon, the operating system may create an instance of an application which runs within a window, a metaphorical “view” of the running application which functions as a self-contained entity on the desktop of the GUI display. The user interacts with the GUI using a pointing device, such as a mouse or a joystick, to control the movement of a cursor which specifies the point of interaction with the GUI display. Using, for example, a mouse, the user may position the cursor over graphical controls such as icons, menu entries, and window control regions, and then operate a mouse button to send an operation command to the control, which then causes an operation specified by the control to be performed. In an example of a user interface provided by Microsoft Windows (Windows is a registered trade mark of Microsoft Corporation) the window has three control buttons at the top right of the window which, respectively, cause the following functions to be performed: minimizing the window to, for example, a selectable icon on the toolbar of a GUI display; maximizing the window to cover the full screen of the display; and closing the window to close that instance of an application.
A user may have many windows and minimized windows displayed at a time, and may be opening and closing new windows over time. In such an environment, windows may be created or restored from a minimized condition at any time. It is therefore possible for windows to be created or restored to a position on the display so that a window control button is under the current position of the cursor. If at the same time a user operates a mouse button, for example, this will cause the unintended operation of the window control button function, such as to minimize, maximize or close the corresponding window.
United States published patent application US 2009/0193357 discloses a method to prevent a second application GUI interface window blocking a first application GUI interface window while the user's focus is on the first window causing unintended input into the second application window. This is accomplished by temporarily discarding inputs while the graphical cursor is located on the second application window for a predetermined amount of time to give the user enough time to refocus on the second application window.
United States published patent application US2009/0125850 discloses the addition of a user selectable lock to a GUI control, such as a close button. The lock can be imposed on an individual window. After being applied, a user will have to explicitly unlock the control before the control can be selected, which prevents inadvertent selections of the locked control. For example, a lock can be placed on a close control to prevent accidental closing of a window. Locks can be manually or automatically applied. Automatically applied locks can be associated with a set of user configurable rules, which can also establish rules for automatically unlocking GUI controls. An applied GUI control lock can be unlocked in a user configurable manner, with any level of security.
It would be advantageous to provide a better solution to the problem of the inadvertent selection of GUI window control buttons which may occur when a window is displayed on a display screen and the position of a window control button coincides with the graphical cursor position.
Accordingly, viewed from a first aspect the present invention provides a method for controlling a graphical user interface, GUI, comprising preparing a window for displaying at an intended display location in a window display operation, identifying a location of a GUI control element of the window at the intended display location, identifying a location of a graphical cursor, and comparing the GUI control element location with the graphical cursor location. On identifying that the locations coincide, the window display operation is modified.
Preferably the method provides for the GUI control element to be one of: a close button; a minimize button; a maximize button; a menu button; a check box or a radio button.
Preferably the method provides for modifying the window display operation comprising changing the window display location so that the GUI control element location and graphical cursor location do not coincide.
Preferably the method provides for the location of the graphical cursor being a current location.
Preferably the method provides for the location of the graphical cursor being a predicted location.
Preferably the method provides for the predicted location being determined from cursor movement speed and direction information.
Preferably the method provides for modifying the window display operation comprising disabling the operation of the GUI control element.
Preferably the method provides for repeating the comparison after a time interval, and if the locations do not coincide, displaying the window with GUI control element operation enabled.
According to a second aspect of the present invention, there is provided a computer system for effecting the controlling of a graphical user interface, GUI, comprising a processor, and a display device in communication with the processor. A window display component is for preparing a window for displaying at an intended display location in a window display operation. A first identifying component is for identifying the location of a GUI control element of the window at the intended display location. A second identifying component is for identifying a location of a graphical cursor. A comparison component is for comparing the GUI control element location with the graphical cursor location. A third identifying component is for identifying that the locations coincide and a modifier component is for modifying the window display operation.
Preferably the system provides for the GUI control element being one of: a close button; a minimize button; a maximize button; a menu button; a check box or a radio button.
Preferably the system provides for the modifier component being for modifying the window display operation by changing the window display location so that the GUI control element location and graphical cursor location do not coincide.
Preferably the system provides for the location of the graphical cursor being a current location.
Preferably the system provides for the location of the graphical cursor being a predicted location.
Preferably the system provides for the predicted location being determined from information concerning speed and direction of cursor movement.
Preferably the system provides for the modifier component being for modifying the window display operation by disabling the operation of the GUI control element.
Preferably the system provides for the comparison component repeating the comparison after a time interval, and if the locations do not coincide, the window display component displaying the window with GUI control element operation enabled.
According to a third aspect of the present invention, there is provided a computer program comprising computer program code stored on a computer readable medium to, when loaded into a computer system and executed thereon, cause the computer system to perform the steps of the method according to the first aspect.
A preferred embodiment of the present invention is described below, by way of example only, with reference to the following drawings, in which:
a is a representation of a desktop of a graphical user interface of a preferred embodiment of the present invention;
b is a representation of a desktop of a graphical user interface of a preferred embodiment of the present invention after opening of a window;
a is a representation of a desktop of a graphical user interface depicting the solution of a preferred embodiment of the present invention;
b is a representation of a desktop of a graphical user interface depicting a further preferred embodiment of the present invention; and
Referring to the figures,
b illustrates the opening of a window on the graphical user interface of
The user interacts with the graphical user interface desktop 110 on display 280 using a cursor movement device such as mouse 270, a trackball, a trackpad or a joystick. Movement of mouse 270 generates signals indicative of the movement which are communicated to cursor control component 240. Cursor control component 240 comprises program code which interprets signals from cursor movement device, for example mouse 270. Although cursor control component 240 is depicted as a separate software component of operating system 220, its function may be performed by window manager 230. When cursor movement device is mouse 270, according to a preferred embodiment, cursor control component 240 comprises mouse driver software. Cursor control component 240 moves graphical cursor 140 in response to movement of mouse 270. Cursor 140 comprises a single pixel point, usually at its tip, sometimes known as the hot spot, which is the site of action of commands communicated from mouse 270 to cursor 140. The position of the cursor 140 hot spot is tracked by cursor control component 240 which views desktop 110 on display 280 as a bitmap on which each pixel is represented by x- and y-coordinates, usually with reference to the top left corner of desktop 110. Cursor control component 240 also communicates the position of cursor 140 to window manager 230.
As illustrated in
Window manager 230 determines the bounding coordinates of window 150 to be opened on the bitmap of desktop 110. Window manager 230 is therefore aware also of the bounding coordinates of the visual components of window 150, namely title bar 160, and control elements: window menu selection button 180, MINIMIZE button 170a, MAXIMIZE button 170b and CLOSE button 170c. Window manager 230 includes logic to compare the bounding coordinates of window control elements with the current coordinates of the cursor 140 hot spot as communicated to it by cursor control component 240.
a illustrates a solution according to a preferred embodiment of the present invention. Illustrated is the intended creation point 310 of the window 150 shown in
b illustrates a further preferred embodiment of the present invention. In this embodiment, the situation is addressed in which cursor 140 is moving at the time of window creation. In this embodiment, cursor control component 240 records the current speed and direction of cursor movement. As illustrated in
In a further preferred embodiment, and illustrated again by
In a further preferred embodiment, window manager 230 responds to a positive result of the comparison of cursor 140 hot spot position and window control element coordinates by disabling control element functions for a time interval before re-enabling them, without waiting for cursor 140 to move. This allows time for the user to recognize window creation and avoid inadvertent window control element operation.
It will be clear to one of ordinary skill in the art that all or part of the method of the preferred embodiments of the present invention may suitably and usefully be embodied in a logic apparatus, or a plurality of logic apparatus, comprising logic elements arranged to perform the steps of the method and that such logic elements may comprise hardware components, firmware components or a combination thereof.
It will be equally clear to one of skill in the art that all or part of a logic arrangement according to the preferred embodiments of the present invention may suitably be embodied in a logic apparatus comprising logic elements to perform the steps of the method, and that such logic elements may comprise components such as logic gates in, for example a programmable logic array or application-specific integrated circuit. Such a logic arrangement may further be embodied in enabling elements for temporarily or permanently establishing logic structures in such an array or circuit using, for example, a virtual hardware descriptor language, which may be stored and transmitted using fixed or transmittable carrier media.
It will be appreciated that the method and arrangement described above may also suitably be carried out fully or partially in software running on one or more processors (not shown in the figures), and that the software may be provided in the form of one or more computer program elements carried on any suitable data-carrier (also not shown in the figures) such as a magnetic or optical disk or the like. Channels for the transmission of data may likewise comprise storage media of all descriptions as well as signal-carrying media, such as wired or wireless signal-carrying media.
A method is generally conceived to be a self-consistent sequence of steps leading to a desired result. These steps require physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It is convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, parameters, items, elements, objects, symbols, characters, terms, numbers, or the like. It should be noted, however, that all of these terms and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities.
The present invention may further suitably be embodied as a computer program product for use with a computer system. Such an implementation may comprise a series of computer-readable instructions either fixed on a tangible medium, such as a computer readable medium, for example, diskette, CD-ROM, ROM, or hard disk, or transmittable to a computer system, via a modem or other interface device, over either a tangible medium, including but not limited to optical or analogue communications lines, or intangibly using wireless techniques, including but not limited to microwave, infrared or other transmission techniques. The series of computer readable instructions embodies all or part of the functionality previously described herein.
Those skilled in the art will appreciate that such computer readable instructions can be written in a number of programming languages for use with many computer architectures or operating systems. Further, such instructions may be stored using any memory technology, present or future, including but not limited to, semiconductor, magnetic, or optical, or transmitted using any communications technology, present or future, including but not limited to optical, infrared, or microwave. It is contemplated that such a computer program product may be distributed as a removable medium with accompanying printed or electronic documentation, for example, shrink-wrapped software, pre-loaded with a computer system, for example, on a system ROM or fixed disk, or distributed from a server or electronic bulletin board over a network, for example, the Internet or World Wide Web.
In one alternative, the preferred embodiment of the present invention may be realized in the form of a computer implemented method of deploying a service comprising steps of deploying computer program code operable to, when deployed into a computer infrastructure and executed thereon, cause said computer system to perform all the steps of the method.
In a further alternative, the preferred embodiment of the present invention may be realized in the form of a data carrier having functional data thereon, said functional data comprising functional computer data structures to, when loaded into a computer system and operated upon thereby, enable said computer system to perform all the steps of the method.
Number | Date | Country | Kind |
---|---|---|---|
1118991.7 | Nov 2011 | GB | national |