1. Field of the Invention
The present invention relates to an information processing apparatus and control method thereof, and a computer program.
2. Description of the Related Art
Conventionally, an information processing system, which can simultaneously execute a plurality of applications with user interfaces, can display a plurality of windows corresponding to the applications at the same time, and can control the respective windows to serve as independent user interfaces.
In such a case, the information processing system can display the plurality of windows by one of the following methods. A method of overlapping the windows at arbitrary locations according to the rule of a predetermined priority order upon displaying the respective windows is available (overlap method). Also, a method of tiling the windows without overlapping each other upon displaying the respective windows is available (tiling window method). In general, when many windows need to be displayed within a limited display screen, the overlap method is more effective.
Most of windows allow modification of their sizes and locations in the X and Y directions independently or simultaneously. When the overlap method is used, the windows need to be moved or resized to avoid completely covered windows as a result of window overlap.
When a plurality of applications run in parallel, and corresponding windows are displayed at the same time, a display controller of an information processing apparatus displays a window to be prioritized or a window selected by the user for access in front of all other windows in each case. The whole area of the window displayed in front of all other windows is displayed, and partial areas of other windows are displayed based on their overlapping states.
However, in this situation, when the user wants to frequently access a window hidden by other windows or to refer to its contents, the user needs to make a predetermined operation for windows. This operation includes that of switching display to locate a desired window in front of all other windows and that of downsizing or moving the windows located in front of the target window.
In general, upon resizing a window (e.g., to reduce its size), it becomes difficult to display all the contents displayed before resizing within the resized window. For this reason, only partial contents to be prioritized are displayed. The sequence for determining such part to be prioritized is executed either automatically or manually.
A window is resized by dragging one border or corner of the window. The window is moved by dragging a specific region which is not used for resizing.
Upon resizing a window, there is a specification prepared in advance for each window type, and display control upon resizing is performed based on the specification. More specifically, a specification that moves the display contents upon dragging when a window is resized by dragging one border or corner is available. Also, a specification that does not move the display contents irrespective of dragging is available. Furthermore, a specification that moves the display contents to have a predetermined ratio with respect to dragging or reduces or modifies them is available.
These specifications are determined in advance for respective window types or for respective places to be dragged even on one window. Note that in the present specification, moving the display contents of a window upon resizing the window will be referred to as “scrolling”.
A general display control method upon resizing a window will be described below.
In general, upon resizing the window by moving the right or bottom border of the four borders, the display contents near the border opposite to the border to be moved remain unchanged, and those near the border to be moved are changed.
Upon resizing the window by moving the left or top border of the four borders, the display contents near the border to be moved remain unchanged, and those near the border opposite to the border to be moved are changed.
As shown in
The concept of the display control shown in
Many specifications associated with resizing of a window are designed to naturally locate the contents to be prioritized at a display position if the user normally makes a resizing operation. However, a part that the user wants to display does not always move to the display position, and an operation for individually shifting the position of the display contents after resizing is often required.
Most windows have scroll bars to shift the position of the display contents. In general, the user can move the contents that the user wants to display or access to the position within the window by operating the scroll bar.
The inventions that improve the operations for resizing a window by dragging, for example, a predetermined part of the window are disclosed in Japanese Patent Nos. 2765615 and 3431795.
On the other hand, a certain window often configures parent and child windows defined by predetermined specifications so as to prevent related windows from being uneasy to see due to overlap display or to prevent correspondence between the related windows from confusing.
The inventions that relate to a method of controlling the relationship between the parent and child windows upon resizing a window are disclosed in Japanese Patent Laid-Open No. 9-185480 and Japanese Patent No. 3586351.
In order to resize (especially, reduce) a window and to preferentially display a desired part, use of the display control specification determined in advance for each window type does not suffice. In many cases, the user needs to perform two operations step by step in such a manner that the user is required to scroll the display contents by a predetermined amount in a predetermined direction after resizing. Such requirement results in inefficiency upon making various operations on a computer, thus decreasing productivity accordingly.
Embodiments of the present invention provides a technique that allows the user to arbitrarily and intuitively perform an operation for moving a desired part to be prioritized to a predetermined location concurrently with resizing during resizing a window.
According to an exemplary embodiment of the present invention, there is provided an information processing apparatus comprising, display unit configured to display a window, accepting unit configured to accept a resize instruction of the displayed window together with a scroll instruction indicating whether or not to scroll display contents within the window, and control unit configured to control a size of the window and a scrolling of the display contents within the window based on contents of the resize instruction and the scroll instruction, wherein when the scroll instruction indicates that the display contents are to be scrolled, the control unit changes the window to a size indicated by the resize instruction, and scrolls the display contents according to a change amount of the window, and when the scroll instruction indicates that the display contents are not to be scrolled, the control unit changes the window to a size indicated by the resize instruction, and suppresses a scrolling of the display contents.
According to another exemplary embodiment of the present invention, there is provided a method of controlling an information processing apparatus comprising, displaying a window on a display unit, accepting a resize instruction of the displayed window together with a scroll instruction indicating whether or not to scroll display contents within the window, and controlling a size of the window and a scrolling of the display contents within the window based on contents of the resize instruction and the scroll instruction, wherein when the scroll instruction indicates that the display contents are to be scrolled, the window is changed to a size indicated by the resize instruction, and the display contents are scrolled according to a change amount of the window, and when the scroll instruction indicates that the display contents are not to be scrolled, the window is changed to a size indicated by the resize instruction, and scrolling of the display contents is suppressed.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Embodiments of the invention will be described hereinafter with reference to the accompanying drawings.
The present invention provides a technique which arbitrarily controls, concurrently with dragging, whether or not to scroll the display contents of a window in response to dragging upon resizing the window by dragging an element (border, corner, boundary, etc.) which configures the window.
In particular, the present invention proposes the following three control techniques.
The first control technique covers a case in which the user resizes a window by mainly dragging one border of the window. This technique is characterized in that a direction component, which is not directly related to resizing, of those of the cursor motion upon movement is used in control. In corresponding embodiments, two different regions are formed on each border of a window, and ON/OFF of scrolling can be controlled concurrently with dragging by selecting that region while dragging.
The second control technique is characterized in that ON/OFF of scrolling is controlled by operating a button other than that for dragging of an operation unit upon making a drag movement. This technique can be applied to both a case of dragging a corner and that of dragging a border.
The third control technique executes control by cooperating the first and second control techniques. With this technique, on a window including a plurality of sub-windows, each sub-window is resized by dragging a boundary of the sub-window. In case of the window including the plurality of sub-windows, since each boundary is independently controlled, this technique can also be applied to a window including many sub-windows.
The first embodiment of the invention will be described hereinafter. This embodiment will explain an embodiment that relates to the first control technique.
A display unit 104 displays information according to commands input from an operation unit 109, externally acquired information, and the like. The display unit 104 may adopt any display method of CRT type, liquid crystal type, PDP type, SED type, and organic EL type. The display unit 104 displays a window according to this embodiment. A network interface (to be referred to as “I/F” hereinafter) 105 is a communication interface used to connect a network. A ROM 106 stores programs such as a basic I/O program and the like.
An external storage drive 107 can load programs and the like stored in a medium 108 to this computer system. The medium 108 as a storage medium stores predetermined programs and related data. The operation unit 109 is a user interface used to accept operations and instructions from an operator of this apparatus, and comprises a keyboard, mouse, digital pen, and the like. A system bus 110 controls the flow of data in the apparatus.
Note that a mouse, digital pen, and tablet as examples of the operation unit 109 can have the arrangements shown in, for example,
A mouse 120 shown in
A digital pen 130 and tablet 140 shown in
The tablet 140 comprises a pressure-sensitive or electrostatic contact sensor, and can detect the position of the digital pen 130 when the tip of the digital pen 130 is pressed against the tablet 140. When the operator moves the digital pen 130 while pressing the tip against the tablet 140, the tablet 140 can detect the moving direction and amount of the digital pen 130. Note that the tablet 140 may be integrated with the display unit 104.
An example of the configuration of a window according to the embodiment of the invention will be described below with reference to
Referring to
In this embodiment, each border is divided into two different regions, that is, first and second region. More specifically, the first region is located to include the center of the border, and the second region is located to include the end portions of the border, and to sandwich the first region. For example, on the top border 201, a first region 201a including the center of the border is located to be sandwiched between second regions 201b including the end portions of the border.
As the division method of the first and second region, each border may be equally divided into three or the first region may be slightly longer or shorter than the length obtained when the border is equally divided into three regions. This embodiment will exemplify a case in which one border is equally divided into three regions.
The window 200 includes a title bar 205 and display area 206. The title bar 205 displays information corresponding to the content displayed in the display area 206. For example, when the display area 206 displays document data, the title bar 205 displays a document name. The display area 206 displays the contents of data to be displayed. The display area 206 displays the contents of a document for a document file, or displays a corresponding image or graphic information for an image or graphic file.
In this embodiment, the window can be resized by dragging one of the four borders of the window based on the operation of the operation unit 109, and moving the selected border in a direction perpendicular to that border. That is, in this embodiment, the drag operation corresponds to a window resize instruction operation. As will be described in detail below, the present invention is characterized in that the window resize instruction, including a scroll instruction indicating whether or not to scroll the display contents within the window, is accepted.
Note that this embodiment uses “drag” as a term that represents the concept to be described below. A case will be examined first wherein the mouse shown in
A case will be examined below wherein the digital pen 130 and tablet 140 shown in
As shown in
In
As shown in
In
In this embodiment, “resizing with scrolling” and “resizing without scrolling” can be executed during resizing in a continuous drag operation. That is, the resizing with scrolling and that without scrolling can be switched in real time during a continuous, single drag operation. Hence, the user can resize the window while adjusting the display position.
Switching between the resizing with scrolling and that without scrolling will be described below with reference to
A case will be examined below wherein the user reduces the window 200 by dragging the left border 203 of the window and moving it in a direction of an arrow 501 (right direction), as shown in
In
While dragging the left border 203, since the position Cx of the left border 203 in the X direction follows an X component of the cursor position (it is not related to a Y component), it can be expressed by:
Cx=Px (1)
From equation (1), since the cursor is kept located on the left border during dragging, a condition required to locate the cursor on the first region is described by:
Ly/3≦Py−Cy≧2Ly/3
Likewise, a condition required to locate the cursor on one of the second regions 203b of the left border 203 is described by:
0<Py−Cy<Ly/3 or 2Ly/3<Py−Cy<Ly
Therefore, upon making a drag operation while the cursor is located on the second region to attain the resizing without scrolling, this process can be expressed in association with the point Q by:
ΔQx=0 (2)
where ΔQx is a difference between Qx at the beginning of the resizing without scrolling, and Qx after the window is resized.
Likewise, upon making a drag operation while the cursor is located on the first region to attain the resizing with scrolling, this process can be expressed in association with the position Q by:
ΔQx=ΔCx=ΔP (3)
where ΔQx is a difference between Qx at the beginning of the resizing with scrolling, and Qx after the window size is resized. Likewise, ΔCx and ΔPx are differences between Cx and Px at the beginning of the resizing with scrolling, and Cx and Px after the window is resized. Note that these differences correspond to change amounts of the window 200 in the X direction.
Upon application of the above concept to
That is, while the cursor begins to be dragged from P0 and is continuously dragged to be moved to P3, the position of the left border 203 of the window 200 moves from C0 to C3 according to the X component of the cursor, thus resizing the window. During this operation, the “resizing with scrolling” and “resizing without scrolling” are executed concurrently according to a change in position of the cursor in the Y direction.
The same applies to a case in which the user upsizes the window by moving the cursor position like P5→P6→P7→P8. That is, when the cursor position falls within a range from P5 to P6 and from P7 to P8, since the cursor belongs to the second region 203b, ΔQx=0, and the resizing without scrolling is executed. When the cursor position falls within a range from P6 to P7, since the cursor belongs to the first region 203a, ΔQx=ΔPx, and the resizing with scrolling is executed.
That is, while the cursor begins to be dragged from P5 and is continuously dragged to be moved to P8, the position of the left border 203 of the window 200 moves from C3 to C0 according to the X component of the cursor, thus resizing the window. During this operation, the “resizing with scrolling” and “resizing without scrolling” are executed concurrently according to a change in position of the cursor in the Y direction.
Note that the case has been exemplified in
The sequence of the aforementioned window resizing processing will be described below with reference to the flowchart of
Note that
In step S601, the CPU 101 acquires operation information (information of a first instruction operation) of a first button of the mouse 120 or digital pen 130 of the operation unit 109, and information (moving information) of the moving direction and amount of the mouse 120 or digital pen 130. Note that the first button (first operation unit) corresponds to the left button 121 of the mouse 120 if the mouse 120 is used in the default settings of Microsoft Windows®. Also, the first button corresponds to the tip switch 131 at the pen tip of the digital pen 130.
The CPU 101 determines in step S602 based on the operation information of the first button acquired in step S601 whether or not the first button is switched from OFF to ON. If it is determined that the first button is switched to ON (“YES” in step S602), the process advances to step S603. On the other hand, if it is determined that the first button is kept OFF without being switched to ON (“NO” in step S602), the process returns to step S601 to continue the processing.
In step S603, the CPU 101 calculates the position coordinate of the cursor (cursor position coordinate) based on the moving amount information acquired in step S601 to determine on which border of the window 200 the cursor is located. This determination process can be attained by seeing which of predetermined regions set based on the first and second regions of the borders that configure the window 200 includes the cursor position coordinate.
If it is determined that the cursor is located on the left border 203 of the window 200 (“left border” in step S603), it can be determined that the user begins to drag the left border 203. In this case, the process advances to step S604. On the other hand, if the cursor is located on one of the remaining borders (on one of the top border 201, bottom border 202, and right border 204) (“another border” in step S603), it can be determined that the user begins to drag another border. In this case, the process advances to step S605. In step S605, the CPU 101 executes window resizing processing by dragging of another border.
In step S604, the CPU 101 determines the cursor position coordinate P(Px, Py) at the beginning of dragging, as shown in
In step S606, the CPU 101 further acquires the operation information of the first button and the moving amount information, and updates the cursor position coordinate P(Px, Py) based on the moving amount information. The CPU 101 then determines in step S607 whether or not the first button is kept ON. If the first button is not kept ON but is switched to OFF (“NO” in step S607), this processing ends. In this case, a so-called “drop” operation is made.
On the other hand, if the first switch is kept ON (“YES” in step S607), the process advances to step S608. In step S608, the CPU 101 sets the X position (Cx) of the left border 203 of the window 200 to match the X component (Px) of the cursor position coordinate updated in step S606. In this way, the position of the left border 203 follows the movement of the cursor in the X direction.
The CPU 101 determines in step S609 based on the cursor position coordinate updated in step S606 whether or not the cursor is located on the first region. If it is determined that the cursor is located on the first region (“YES” in step S609), the process advances to step S610. On the other hand, if it is determined that the cursor is located on the second region (“NO” in step S609), the process advances to step S611.
In step S610, the CPU 101 sets the moving amount ΔQx of the position Q of the arbitrary display contents in the X direction to be equal to the moving amount ΔPx of the cursor in the X direction, so as to scroll the display contents upon resizing the window. On the other hand, in step S611, the CPU 101 sets the moving amount ΔQx to be zero so as to suppress scrolling of the display contents upon resizing the window.
In step S612, the CPU 101 updates display of the cursor and window 200 based on the position of the left border 203 determined in step S608 and the moving amount ΔQx determined in step S610 or S611. After that, the process returns to step S606 to continue the processing.
Note that a loop from step S606 to step S612 represents cursor movement during dragging, that is, that dragging is continued and resizing of the window is in progress during this loop. When the control leaves this loop, this represents that the drop operation is made to settle the window size.
As described above, according to this embodiment, since each border of the window is divided into two different regions, and the change method of the display contents within the window can be controlled based on the selected region. Since the region can be selected in real time during resizing of the window, the position of the display contents within the window can be controlled simultaneously with resizing. In this way, a desired display result can be obtained by a series of operations, thus improving the work efficiency.
The second embodiment of the invention will be described hereinafter. This embodiment will explain an embodiment that extends the first control technique.
Upon displaying a window on a display unit 104, the following three display states are normally available:
1. a display state in which both the height and width of the window are maximized to fit a whole display screen (so-called full screen display);
2. a display state in which only one icon or title is displayed in a small size (so-called minimum display); and
3. a display state in which the window occupies only a part of the display screen.
The display states 1 and 3 will be compared. In case of the display state 1, since the window itself is fixed, there is no trouble upon handling the window. However, in order to refer to another window, a switching operation for canceling the full screen display state is required.
On the other hand, in case of the display state 3, there is a merit of allowing the user to refer to a plurality of windows, but it is troublesome since the sizes and locations of the respective windows need to be determined and organized. Especially, when a relatively large window completely covers a relatively small window, the user needs to move the upper window to an appropriate location to access the lower window, resulting in inconvenience.
In this embodiment, in order to allow use of a window of a type that considers the merits of both the display states, window display of the first embodiment is applied to so-called “full screen display”.
As described above, in “full screen display”, a window is maximized in the X and Y directions of the display screen of the display unit 104, and is fixed in size. The window cannot be resized unless the full screen display state is canceled.
By contrast, in the full screen display according to this embodiment, a window is maximized in only one of the X and Y directions within the display screen, and is fixed in size in that direction. In the remaining direction, one border is fixed to the end of the display screen, and only the other border is movable by dragging. By operating this border that can be dragged, the window can be resized in one direction.
In
Note that in this embodiment, a border that is movable can also be referred to as a “movable border”, a border located at a position opposite to the movable border can also be referred to as a “first fixed border (opposing fixed border)”, and the remaining two borders can also be referred to as a “second fixed border” and “third fixed border”.
In case of
Note that the display position on a display area 206 of the window 200 can be controlled in the same manner as in the first embodiment. However, an only difference is that the first and second regions given to all the four borders in the first embodiment are limited to only one border in this embodiment.
As described above, the window according to this embodiment is maintained in a maximized state in one of the X and Y directions (width and height directions). Therefore, upon reordering a plurality of windows, a one-dimensional positional relationship need only be considered. As a result, compared to reordering of windows in consideration of a two-dimensional positional relationship, an operation can be simplified very much, thus greatly eliminating complexity.
Since the window can be resized, a window hidden below the upper window can be displayed compared to a case in which a window is completely maximized in both the X and Y directions, thus improving convenience.
Also, such window can be defined as a fourth window display state in addition to the aforementioned window display states 1 to 3.
Note that the point of this embodiment is not limited to that the window can be resized in one direction in the full screen display state, but it lies in that the display position of the display contents within the window can be controlled at the time of the drag operation in combination with the invention according to the first embodiment.
The third embodiment of the invention will be described hereinafter. This embodiment will explain an embodiment which relates to the second control technique.
The aforementioned first embodiment has proposed the display control method upon resizing the window by dragging one of the borders which configure the window. This method is effective in the case in which the window is often resized by mainly dragging the border. Especially, this method is very effective for the window which is maximized in only one direction, as described in the second embodiment.
However, a normal window can be resized by dragging one of its corners, as shown in
This embodiment proposes a method that can control ON/OFF of scrolling during resizing in real time as in the first embodiment even upon resizing a window by dragging its corner.
In the display control method according to the aforementioned first embodiment, upon resizing a window by dragging its border, ON/OFF switching of scrolling upon resizing is controlled based on the cursor position in the direction perpendicular to the dragging direction. However, upon resizing a window by dragging its corner, the cursor movement needs to be instructed two-dimensionally. That is, since both the X and Y components of the cursor movement get directly involved in the movement of the corner, one component of the cursor movement cannot be used in switching control between resizing with scrolling and that without scrolling.
Hence, this embodiment uses ON/OFF of a second button of a mouse 120 or digital pen 130 of an operation unit 109 in switching control between resizing with scrolling and that without scrolling upon resizing a window. Note that the second button (second operation unit) corresponds to a right button 122 of the mouse 120 in the default settings of Microsoft Windows®. On the other hand, the second button corresponds to a side switch 132 on the side surface of the digital pen 130. Also, the second button may be assigned to a specific key such as a control key.
The operation of the display control method according to this embodiment will be described below with reference to
Note that a dotted line 901 in
It should be noted that the first button is kept ON during dragging irrespective of ON/OFF of the second button.
This embodiment can assure similar operations on any of four corners 207 to 210 of the window 200, and the following description will be given taking as an example a case in which the user drags the lower right corner 209.
In
At the beginning of dragging, as shown in
During the movement of the cursor position from P0 to P1 after the beginning of dragging in
ΔC(ΔCx,ΔCy)=ΔP(ΔPx,ΔPy) (4)
ΔB(ΔBx,ΔBy)=ΔP(ΔPx,ΔPy) (5)
ΔQ(ΔQx,ΔQy)=ΔP(ΔPx,ΔPy) (6)
where Δ indicates a change amount.
Furthermore, during the movement of the cursor position from P1 to P2 in
ΔC(ΔCx,ΔCy)=ΔP(ΔPx,ΔPy) (7)
ΔB(ΔBx,ΔBy)=(0,0) (8)
ΔQ(ΔQx,ΔQy)=(0,0) (9)
The sequence of the aforementioned window resizing processing will be described below with reference to the flowchart of
Note that
In step S1001, the CPU 101 acquires operation information (information of a first instruction operation) of a first button of the mouse 120 or digital pen 130 of the operation unit 109, and information (moving information) of the moving direction and amount of the mouse 120 or digital pen 130. Note that the first button corresponds to the left button 121 of the mouse 120 if the mouse 120 is used in the default settings of Microsoft Windows®. Also, the first button corresponds to a tip switch 131 at the pen tip of the digital pen 130.
The CPU 101 determines in step S1002 based on the operation information of the first button acquired in step S1001 whether or not the first button is switched from OFF to ON. If it is determined that the first button is switched to ON (“YES” in step S1002), the process advances to step S1003. On the other hand, if it is determined that the first button is kept OFF without being switched to ON (“NO” in step S1002), the process returns to step S1001 to continue the processing.
In step S1003, the CPU 101 calculates the position coordinate of the cursor P (cursor position coordinate) based on the moving amount information acquired in step S1001 to determine on which corner of the window 200 the cursor is located. This determination process can be attained by seeing which of predetermined regions set based on the corners that configure the window 200 includes the cursor position coordinate.
If it is determined that the cursor is located on the lower right corner 209 of the window 200 (“lower right corner 209” in step S1003), it can be determined that the user begins to drag the lower right corner 209. In this case, the process advances to step S1004. On the other hand, if the cursor is located on one of the remaining corners (on one of the corners 207, 208, and 210) (“another” in step S1003), it can be determined that the user begins to drag another corner. In this case, the process advances to step S1005. In step S1005, the CPU 101 executes window resizing processing by dragging of another corner.
In step S1004, the CPU 101 determines the position coordinates P(Px, Py), C(Cx, Cy), B(Bx, By), and Q(Qx, Qy) at the beginning of dragging, as shown in
In step S1006, the CPU 101 further acquires the information of the first instruction operation and moving amount information, and also operation information of a second button (information of a second instruction operation) of the mouse 120 or digital pen 130 of the operation unit 109. Also, the CPU 101 updates the cursor position coordinate P(Px, Py) based on the moving amount information. The CPU 101 then determines in step S1007 whether or not the first button is kept ON. If the first button is not kept ON but is switched to OFF (“NO” in step S1007), this processing ends. In this case, a so-called “drop” operation is made.
On the other hand, if the first switch is kept ON (“YES” in step S1007), the process advances to step S1008. In step S1008, the CPU 101 sets the position C(Cx, Cy) of the lower right corner 209 of the window 200 to match the cursor position P(Px, Py) updated in step S1006. In this way, the position of the lower right corner 209 follows the cursor movement.
The CPU 101 determines in step S1009 based on the operation information of the second button acquired in step S1006 whether or not the second button is ON. If it is determined that the second button is ON (“YES” in step S1009), the process advances to step S1010. On the other hand, if it is determined that the second button is OFF (“NO” in step S1009), the process advances to step S1011.
In step S1010, the CPU 101 sets the moving amount ΔQ(ΔQx, ΔQy) of the position Q of the arbitrary display contents to be equal to the moving amount ΔP(ΔPx, ΔPy) of the cursor. In this way, the display contents are scrolled by a size corresponding to the change amounts of the window 200 in the X and Y directions. On the other hand, in step S1011, the CPU 101 sets the moving amount ΔQ to be (0, 0). In this case, the display contents are not scrolled.
In step S1012, the CPU 101 updates display of the cursor and window 200 based on the position of the lower right corner 209 determined in step S1008 and the moving amount ΔQ determined in step S1010 or S1011. After that, the process returns to step S1006 to continue the processing.
Note that a loop from step S1006 to step S1012 represents cursor movement during dragging, that is, that dragging is continued and resizing of the window is in progress during this loop. When the control leaves this loop, this represents that the drop operation is made to settle the window size.
As described above, according to this embodiment, the two different operation buttons of the operation unit 109 are used, and the change method of the display contents within the window can be controlled based on combinations of the button operations. Since the combinations of the button operations can be changed in real time during resizing of the window, the position of the display contents within the window can be controlled simultaneously with resizing. In this way, a desired display result can be obtained by a series of operations, thus improving the work efficiency.
Note that the case has been explained wherein the window is resized by mainly dragging the corner of the window. However, the display control method according to this embodiment can be applied to a case wherein the window is resized by dragging its border. In this case, ON/OFF of scrolling upon resizing can be controlled by the same operations in case of dragging the corner and that of dragging the border.
Note that the display control method (first control technique) according to the first embodiment and that (second control technique) according to this embodiment can be compared as follows.
The first control technique is effective upon attaching importance to resizing by dragging a border, and is especially effective in case of the second embodiment. In consideration of only the case of dragging the border, the first control technique can achieve the desired resizing by a simpler operation than the second control technique.
By contrast, the second control technique is effective for the case including probability of dragging of both the corner and border, and the case that also attaches importance to dragging of the corner. Using the second control technique, the desired resizing can be achieved by common operation to the case of dragging the corner and that of dragging the border.
The fourth embodiment of the invention will be described hereinafter. This embodiment will explain an embodiment that relates to the aforementioned third control technique.
This embodiment will explain display control of the present invention, which is applied to a case in which a window includes a plurality of sub-windows, and each sub-window is resized by dragging a boundary between the neighboring sub-windows.
Some applications display using a window defined by a single area, and some other applications display using a window including a plurality of sub-windows.
When a window includes a plurality of sub-windows, it is a common practice to resize each sub-window in the window by dragging a boundary between the neighboring sub-windows. At this time, in the conventional window configuration, ON/OFF of scrolling upon resizing needs to be determined in advance for each sub-window in case of resizing, or a scroll operation needs to be done after resizing.
For example, the left or top part of the display contents in each sub-window is preferentially displayed in some cases. This is based on the same situation as a window defined by a single area, that is, the idea that the first character of a sentence and the first line of a page are to be preferentially displayed.
Therefore, in an example of a window divided into left and right sub-windows, upon resizing the sub-windows by dragging a boundary, the display contents of the left sub-window are not scrolled, and those of the right sub-window are scrolled. Likewise, in an example of a window divided into upper and lower sub-windows, the display contents of the upper sub-window are not scrolled, and those of the lower sub-window are scrolled.
By contrast, this embodiment provides a display control method that allows to concurrently switch ON/OFF of scrolling of sub-windows on two sides of a boundary in real time during resizing upon resizing by dragging the boundary. Hence, in this embodiment, the need for fixing ON/OFF of scrolling in advance can be obviated unlike in the related art.
Display control processing according to this embodiment will be described below. In this embodiment, in order to control whether or not to scroll the display contents for each sub-window, the following four control modes are available. Note that a case will be examined below wherein a window includes a sub-window on the first side with respect to a boundary, and that on the second side.
Control mode 1. resizing with scrolling of both the sub-windows on the first and second sides
Control mode 2. resizing with scrolling of the sub-window on the first side and that without scrolling of the sub-window on the second side
Control mode 3. resizing without scrolling of the sub-window on the first side and that with scrolling of the sub-window on the second side
Control mode 4. resizing without scrolling of both the sub-windows on the first and second sides
Note that the relationship between the sub-windows on the first and second sides can be considered as that between neighboring sub-windows on, for example, the left and right sides or the upper and lower sides of the boundary.
In
Each of the boundaries 1205 and 1206 is divided into two regions. In
In
Note that a condition (condition 1) required to locate the cursor P on the first region is described by:
LBy/2≦Py−BLy≦LBy
Likewise, a condition (condition 2) required to locate the cursor P on the second region is described by:
0<Py−BLy<LBy/2
Let QL(QLx, QLy) be the position of arbitrary display contents within the sub-window 1207 on the left side of the boundary 1205, and QR(QRx, QRy) be the position of arbitrary display contents within the sub-window 1208 on the right side. The boundary 1205 will be described below. However, the scroll control of the display contents upon resizing the sub-windows with reference to the boundary 1206 can be similarly executed.
Upon execution of resizing without scrolling of the sub-windows in case of a drag operation, the following expression can be made in association with the positions QL and QR:
ΔQLx=ΔQRx=0 (10)
where ΔQLx and ΔQRx are differences of QLx and QRx before and after resizing of the sub-windows.
Likewise, upon execution of resizing with scrolling of the sub-windows, the following expression can be made in association with the positions QL and QR:
ΔQLx=ΔQRx=ΔPx (11)
where ΔQLx and ΔQRx are differences of QLx and QRx before and after resizing of the sub-windows. Likewise, ΔPx is a difference of Px before and after resizing of the sub-windows. Note that these differences correspond to the change amounts of the boundary 1205 in the X direction.
In this embodiment, the four types of resizing control of the control modes 1 to 4 are switched by combining dragging of the cursor which is located on either the first or second region, and ON/OFF of the second button operation.
In the control mode 1, the cursor located on the first region is dragged, and the second button is ON.
In the control mode 2, the cursor located on the first region is dragged, and the second button is OFF.
In the control mode 3, the cursor located on the second region is dragged, and the second button is ON.
In the control mode 4, the cursor located on the second region is dragged, and the second button is OFF.
In this way, the display control method according to this embodiment simultaneously uses control based on the position of the cursor in the Y direction used in the first and second embodiments, and control based on the second button of the operation unit 109 used in the third embodiment in cooperation with each other. In case of any of the above four patterns, switching between resizing with scrolling and that without scrolling for each of the sub-windows on the two sides is controlled concurrently during the single, continuous drag operation and cursor movement. The start and continuation of dragging are controlled by ON/OFF of the first button of the operation unit 109 as in the above embodiments.
In
In this display state of the window 1301, when the user locates the cursor on the second region, and drags it while the second button is OFF, a display state of a window 1302 is set. At this time, since both the left and right sub-windows are not scrolled, letters “EE” hidden on the left sub-window are newly displayed. On the other hand, on the right sub-window, “1” and “2” are fully hidden and “3” is partially hidden by the movement of the boundary.
When the user locates the cursor on the first region and drags it while the second button is ON, a display state of a window 1303 is set. Since both the left and right sub-windows are scrolled, the display contents near the boundary remain unchanged, but those near the left and right borders of the window are changed.
Furthermore, when the user locates the cursor on the second region and drags it while the second button is ON, a display state of a window 1304 is set. At this time, only the right sub-window is scrolled. Hence, alphabetical letters “FG” hidden on the left sub-window are newly displayed near the boundary. On the other hand, on the right sub-window, numerals “1 2 3” near the right border of the window, which were displayed on the window 1303, are hidden.
Moreover, when the user locates the cursor on the first region and drags it while the second button is OFF, a display state like a window 1305 is set. At this time, only the left sub-window is scrolled. Hence, on the left sub-window, alphabetical letters “AB” hidden near the left border of the window are displayed. On the other hand, since the right sub-window is not scrolled, numerals “3 4 5 6” are hidden by the boundary.
The sequence of the aforementioned window resizing processing will be described below with reference to the flowchart of
Note that
In step S1401, the CPU 101 acquires operation information (information of a first instruction operation) of a first button of a mouse 120 or digital pen 130 of the operation unit 109, and information (moving information) of the moving direction and amount of the mouse 120 or digital pen 130. Note that the first button corresponds to a left button 121 of the mouse 120 if the mouse 120 is used in the default settings of Microsoft Windows®. Also, the first button corresponds to a tip switch 131 at the pen tip of the digital pen 130.
The CPU 101 determines in step S1402 based on the operation information of the first button acquired in step S1401 whether or not the first button is switched from OFF to ON. If it is determined that the first button is switched to ON (“YES” in step S1402), the process advances to step S1403. On the other hand, if it is determined that the first button is kept OFF without being switched to ON (“NO” in step S1402), the process returns to step S1401 to continue the processing.
In step S1403, the CPU 101 calculates the position coordinate of the cursor P (cursor position coordinate) based on the moving amount information acquired in step S1401 to determine on which boundary of the window 1200 the cursor is located. This determination process can be attained by seeing which predetermined region set based on the boundaries included in the window 1200 includes the cursor position coordinate.
If it is determined that the cursor is located on the boundary 1205 of the window 1200 (“boundary 1205” in step S1403), it can be determined that the user begins to drag the boundary 1205. In this case, the process advances to step S1404. On the other hand, if the cursor is located on one of the remaining boundaries (on the boundary 1206 or the like) (“another” in step S1403), it can be determined that the user begins to drag another boundary. In this case, the process advances to step S1405. In step S1405, the CPU 101 executes window resizing processing by dragging of another boundary.
In step S1404, the CPU 101 determines the position coordinates P(Px, Py), BL(BLx, BLy), QL(QLx, QLy), and QR(QRx, QRy) at the beginning of dragging, as shown in
In step S1406, the CPU 101 further acquires the information of the first instruction operation and moving amount information, and also operation information of the second button (information of a second instruction operation) of the mouse 120 or digital pen 130 of the operation unit 109. Also, the CPU 101 updates the cursor position coordinate P(Px, Py) based on the moving amount information. The CPU 101 then determines in step S1407 whether or not the first button is kept ON. If the first button is not kept ON but is switched to OFF (“NO” in step S1407), this processing ends. In this case, a so-called “drop” operation is made.
On the other hand, if the first switch is kept ON (“YES” in step S1407), the process advances to step S1408. In step S1408, the CPU 101 sets the X component BLx of the end position BL of the boundary 1205 to match the X component Px of the cursor position P updated in step S1406. In this way, the position of the boundary 1205 follows the cursor movement.
The CPU 101 determines in step S1409 based on the coordinate Py of the cursor position in the Y direction obtained in step 1406 on which of the first and second regions the cursor P is located and based on the operation information of the second button if the second button is ON.
If the cursor P is located on the first region, and the second button is ON, the process advances to step S1410. If the cursor P is located on the first region, and the second button is OFF, the process advances to step S1411. Furthermore, if the cursor P is located on the second region, and the second button is ON, the process advances to step S1412. Moreover, if the cursor P is located on the second region, and the second button is OFF, the process advances to step 1413.
In step S1410, the CPU 101 sets the moving amount ΔQLx of the position QL of the arbitrary display contents in the X direction on the left sub-window 1207 as the first side of the boundary 1205 to be equal to the moving amount ΔPx of the cursor P in the X direction. Also, the CPU 101 sets the moving amount ΔQRx of the position QR of the arbitrary display contents in the X direction on the right sub-window 1208 as the second side of the boundary 1205 to be equal to the moving amount ΔPx of the cursor P in the X direction. As a result, the display contents on the sub-windows are scrolled by a size corresponding to the change amount of the boundary 1205 in the X direction.
In step S1411, the CPU 101 sets the moving amount ΔQLx of the position QL of the arbitrary display contents in the X direction on the left sub-window 1207 as the first side of the boundary 1205 to be equal to the moving amount ΔPx of the cursor P in the X direction. Also, the CPU 101 sets the moving amount ΔQRx of the position QR of the arbitrary display contents in the X direction on the right sub-window 1208 as the second side of the boundary 1205 to be zero. In this way, the display contents on the left sub-window 1207 are scrolled by a size corresponding to the change amount of the boundary 1205 in the X direction. On the other hand, the display contents on the right sub-window 1208 are not scrolled.
In step S1412, the CPU 101 sets the moving amount ΔQLx of the position QL of the arbitrary display contents in the X direction on the left sub-window 1207 as the first side of the boundary 1205 to be zero. Also, the CPU 101 sets the moving amount ΔQRx of the position QR of the arbitrary display contents in the X direction on the right sub-window 1208 as the second side of the boundary 1205 to be equal to the moving amount ΔPx of the cursor P in the X direction. In this way, the display contents on the left sub-window 1207 are not scrolled. On the other hand, the display contents on the right sub-window 1208 are scrolled by a size corresponding to the change amount of the boundary 1205 in the X direction.
In step S1413, the CPU 101 sets the moving amount ΔQLx of the position QL of the arbitrary display contents in the X direction on the left sub-window 1207 as the first side of the boundary 1205 to be zero. Also, the CPU 101 sets the moving amount ΔQRx of the position QR of the arbitrary display contents in the X direction on the right sub-window 1208 as the second side of the boundary 1205 to be zero. In this way, the display contents on the sub-windows 1207 and 1208 are not scrolled.
In step S1414, the CPU 101 updates displays of the cursor and window 1200. The CPU 101 executes this updating process based on the position BLx of the boundary 1205 determined in step S1408, and the moving amounts ΔQLx and ΔQRx determined in any of steps S1410 to S1413. After that, the process returns to step S1406 to continue the processing.
Note that a loop from step S1406 to step S1412 represents cursor movement during dragging, that is, that dragging is continued and resizing of the window is in progress during this loop. When the control leaves this loop, this represents that the drop operation is made to settle the window size.
The operation of this embodiment has been described. Note that the same display control method according to this embodiment can be applied to not only the window of the configuration shown in
The window shown in
In this case, the first and second regions are required to be defined on each boundary. As shown in
As described above, according to this embodiment, when a windows is divided into sub-windows by a boundary, the change method of the display contents in the sub-windows can be controlled simultaneously with resizing of the sub-windows. In this way, a desired display result can be obtained by a series of operations, thus improving the work efficiency.
This embodiment proposes display control which is executed in association with the scrolling ON/OFF control method upon resizing a window, that is proposed by the present invention.
Conventionally, display control executed upon resizing includes control for switching ON/OFF of scrolling or a scroll ratio of the display contents according to dragging of a border or corner, control for reducing or enlarging the display contents according to dragging of a border or corner, or the like.
In general, when the display contents are scrolled upon resizing, the contents on an area opposite to the dragged part are hidden. On the other hand, when the display contents are not scrolled upon resizing, the contents of an area near the dragged part are hidden. (Note that the “area opposite to the dragged part” is an area near a border opposite to the dragged border, or an area near two borders that do not contact the dragged corner. The “area near the dragged part” is an area near the dragged border or an area near two borders that contact the dragged corner.)
When a part of the window is hidden, the usability may often be impaired. Hence, it is desired to display such part although imperfectly. Hence, in this embodiment, object images such as characters, patterns, photos, and the like, which are located on an area to be normally hidden, are displayed while being jammed into the area to be hidden, so as to allow the user to see them.
For example, display contents shown in
According to such display control, display control as if objects attached to a window were being scooped by a wiper can be implemented, and objects which are normally hidden are displayed although imperfectly, thus improving the usability.
In order to allow the user to recognize an object group to be normally hidden more easily, a method shown in
Note that upon resizing using the corner, the operations have the same contents for X and Y components.
The display control processing according to this embodiment will be described below with reference to the flowchart shown in
The CPU 101 determines in step S2001 whether or not the user begins to drag a border. If the user begins to drag the border (“YES” in step S2001), the process advances to step S2002. The CPU 101 determines in step S2002 if scrolling is ON simultaneously with resizing of a window by dragging. If it is determined that scrolling is OFF (“NO” in step S2002), the process advances to step S2003; otherwise (“YES” in step S2002), the process advances to step S2005. Note that ON/OFF of scrolling can be determined according to the processes described in the first to fourth embodiments.
A case will be examined below wherein a display area of an object O is expressed by O{(O1x, O1y), (O2x, O2y)}. Note that (O1x, O1y) represents the coordinates of the upper left end of the object, and (O2x, O2y) represents the coordinates of the lower right end of the object. Note that the left direction corresponds to a negative direction of the X-axis on an X-Y coordinate system 502 set in association with the display screen, and the up direction corresponds to a positive direction of the Y-axis. Likewise, the right direction corresponds to a positive direction of the X-axis, and the down direction corresponds to a negative direction of the Y-axis. Let ΔO(ΔO1x, ΔO2x) be a change in display area O in the X-axis direction.
If it is determined in step S2002 that scrolling is OFF, the display position of the object O is basically not changed. That is, the change amount ΔO=(0, 0) of the coordinates of the display area. On the other hand, if it is determined in step S2002 that scrolling is ON, the display position of the object O is changed according to the drag amount. For example, letting Bx be the coordinate of the dragged border in the X direction, and ΔBx be the moving amount, the change amount ΔOx=(ΔBx, ΔBx) of the display area of the object in the X direction. Note that display of such standard objects is not the gist of this embodiment, and is not described in the flowchart of
The following explanation will continue while focusing on an object which is in contact with the dragged border or its opposing border.
The CPU 101 determines in step S2003 whether or not there is an object which is in contact with the dragged border. This determination process can be attained by comparing the coordinates of the display position of the object, and those of the dragged border. At this time, when the X-coordinate Bx of the dragged border falls within a range O1x≦Bx≦O2x, it can be considered that the object is in contact with the dragged border. Note that since the flowchart of
If it is determined that there is an object that is in contact with the dragged border (“YES” in step S2003), the process advances to step S2004. On the other hand, if it is determined that there is no object that is in contact with the dragged border (“NO” in step S2003), the process jumps to step S2007.
In step S2004, the CPU 101 changes the display position of the object which is determined to contact the border according to the moving amount ΔBx of the border. That is, the CPU 101 sets the moving amount ΔOx=(0, 0) of the object before contact to be equal to ΔOx=(ΔBx, ΔBx), so as to be matched with the moving amount of the dragged border. As a result, if scrolling is OFF, the display position of the object which is in contact with the dragged border can be moved and displayed together with the dragged border. After that, the process advances to step S2007.
If scrolling is executed simultaneously with dragging of the border, the CPU 101 determines in step S2005 whether or not there is an object that is in contact with the border opposite to the dragged border.
In this case as well, letting BOx be the X-coordinate of the opposing border, if BOx falls within a range O1x≦BOx≦O2x, it can be considered that the object is in contact with the opposing border. Note that since the flowchart of
If it is determined that there is an object that contacts the opposing border (“YES” in step S2005), the process advances to step S2006. On the other hand, if it is determined that there is no object that contacts the opposing border (“NO” in step S2005), the process jumps to step S2007.
In step S2006, the CPU 101 fixes the display position of the object which is determined to contact at the current display position. That is, the object is scrolled before contact to have ΔOx=(ΔBx, ΔBx) in accordance with the change amount by dragging, and its scrolling is stopped to have ΔOx=(0, 0). In this way, even when scrolling is executed as a whole, the display position of the object which is in contact with the opposing border is fixed near the opposing border, so that the object stays within the window display area. After that, the process advances to step S2007.
In step S2007, the CPU 101 updates display of the object which is in contact with the border based on the moving amount of the object determined in step S2004 or S2006. The CPU 101 updates display of other objects according to ON/OFF of scrolling based on the determination result in step S2002.
The CPU 101 determines in step S2008 whether or not the user ends dragging. If it is determined that the user ends dragging (“YES” in step S2008), this processing ends. On the other hand, if it is determined that the user does not end dragging (“NO” in step S2008), the process returns to step S2002 to continue the processing.
The processing has been described taking as an example the case of
Furthermore, even when a window is divided into sub-windows by a boundary like in the fourth embodiment, the display control of objects within a display area can be implemented based on the presence/absence of a contact with the boundary or border in the same manner as described above.
As described above, even when the display contents are scrolled simultaneously with dragging, when an object in the display contents is in contact with an element (border or boundary) of the window, scrolling of the contact object can be suppressed. Even when the display contents are not scrolled simultaneously with dragging, when an object in the display contents is in contact with an element (border or boundary) of the window, the contact object can be scrolled.
On the other hand, even when the display contents are scrolled simultaneously with dragging, when an object in the display contents is in contact with another object whose scrolling has already been suppressed, scrolling of the contact object can also be suppressed. Even when the display contents are not scrolled simultaneously with dragging, when an object in the display contents is in contact with another object which has already been scrolled, the contact object can also be scrolled.
In this way, display control as if objects attached to a window were being scooped by a wiper can be implemented, and objects which are normally hidden are displayed although imperfectly, thus further improving the usability.
The above-described exemplary embodiments of the present invention can also be achieved by providing a computer-readable storage medium that stores program code of software (computer program) which realizes the operations of the above-described exemplary embodiments, to a system or an apparatus. Further, the above-described exemplary embodiments can be achieved by program code (computer program) stored in a storage medium read and executed by a computer (CPU or micro-processing unit (MPU)) of a system or an apparatus.
The computer program realizes each step included in the flowcharts of the above-mentioned exemplary embodiments. Namely, the computer program is a program that corresponds to each processing unit of each step included in the flowcharts for causing a computer to function. In this case, the computer program itself read from a computer-readable storage medium realizes the operations of the above-described exemplary embodiments, and the storage medium storing the computer program constitutes the present invention.
Further, the storage medium which provides the computer program can be, for example, a floppy disk, a hard disk, a magnetic storage medium such as a magnetic tape, an optical/magneto-optical storage medium such as a magneto-optical disk (MO), a compact disc (CD), a digital versatile disc (DVD), a CD read-only memory (CD-ROM), a CD recordable (CD-R), a nonvolatile semiconductor memory, a ROM and so on.
Further, an OS or the like working on a computer can also perform a part or the whole of processes according to instructions of the computer program and realize functions of the above-described exemplary embodiments.
In the above-described exemplary embodiments, the CPU jointly executes each step in the flowchart with a memory, hard disk, a display device and so on. However, the present invention is not limited to the above configuration, and a dedicated electronic circuit can perform a part or the whole of processes in each step described in each flowchart in place of the CPU.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2007-186326, filed Jul. 17, 2007, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2007-186326 | Jul 2007 | JP | national |
This application is a continuation of application Ser. No. 12/170,994, filed Jul. 10, 2008, the entire disclosure of which is hereby incorporated by reference.
Number | Date | Country |
---|---|---|
03-214362 | Sep 1991 | JP |
Entry |
---|
Feb. 24, 2012 Japanese Office Action that issued in Japanese Patent Application No. 2007-186326. |
Number | Date | Country | |
---|---|---|---|
20120102430 A1 | Apr 2012 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12170994 | Jul 2008 | US |
Child | 13345230 | US |