1. Technical Field
The disclosure relates to a menu controlling method.
2. Description of Related Art
In general, when users touch a touch screen, the touch screen senses the touch operation and pops up a menu including many menu options for user to choose. However, if the size of the menu options is too small, a user may accidentally touch two or more menu options at the same time when trying to select just one. Accordingly, the user cannot easily choose one menu option from the plurality of menu options of the menu on the touch screen.
Therefore, what is needed is a menu controlling method for easily choosing a menu option.
In step S101, the CPU 10 of the electronic device 20 detects operations from users via input devices (not shown) of the electronic device 20, such as a touch pen, mouse, or a finger.
In step S102, the CPU 10 displays the menu 300 including a plurality of menu options 310 according to the operations on a touch screen 200 of the electronic device 20 after the CPU 10 detects the operations. The menu 300 corresponds to one or more programs stored in the storage system. Dimensions of the menu options 310 and touched areas of the touch screen 200 used for calculations in the menu controlling method may include one or a combination of area, length, and height. As shown in
In step S103, the CPU 10 receives a touch input via the input device on the touch screen 200, and identifies a plurality of touch points corresponding to the touch input. As shown in
In step S104, the CPU 10 calculates a display size of one menu option 310, and a covered size of the touch area 400 formed by the touch points. Dimensions of the display size of the menu option 310 for calculations in the menu controlling method may include one or a combination of display area, display length, and display height. In one embodiment, the CPU 10 calculates the display area according to a length and a height of the menu option 310. If the size of the menu option 310 covered by the touch operation is different, the CPU 10 chooses a larger size menu option from the covered menu options to calculate the display size. The CPU 10 calculates the covered size of the touch area 400 according to a number of touch points. Dimensions of the covered size of the touch area 400 for calculations in the menu controlling method may include one or a combination of covered area, covered length, and covered height, which corresponds to the display size of the menu option.
In step S105, the CPU 10 calculates a ratio of the display size to the covered size. For example, the calculated ratio may be a ratio of the display area to the covered area, a ratio of the display length to the covered length, and a ratio of the display height to the covered height.
In step S106, the CPU 10 detects whether the calculated ratio is less than a predetermined ratio; if so, the method continues to step S107. If not, the method returns to step S108.
In step S107, the CPU 10 magnifies the menu 300 according to the ratio of the display size to the covered size, and goes to step S101.
In step S108, the CPU 10 performs an operation according to the received touch input. As shown in
Although the present disclosure has been specifically described on the basis of the embodiments thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
200810303739.4 | Aug 2008 | CN | national |