Dynamic Menu Layout Adjustment for Multilingual GUI
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Display devices face issues with menu items being displayed in disarray when the language is changed, leading to incomplete or overlapping text, which affects the visual experience due to fixed display locations not accommodating varying text lengths across languages.
Innovation Solution
A method and device for dynamically adjusting the layout of menu items based on the display device's language setting, calculating the width occupied by each menu item to ensure proper spacing and alignment from one edge to the other edge of the menu display area, preventing overlap and ensuring complete display of text.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Stability of the object's composition
If menu items are displayed at fixed locations, then the layout is simple and stable, but the text may overlap or be incomplete when language changes
Solution Approach 1:
The patent implements dynamic menu item positioning by calculating layout locations based on the actual width of menu item text in the selected language. Instead of fixed positions, the system adjusts menu item locations dynamically to accommodate varying text lengths across different languages, preventing overlap and ensuring complete display.
Solution Approach 2:
The system changes the positioning parameter from fixed coordinates to dynamic calculations based on text width. By computing the actual width occupied by menu item text in the selected language and adjusting positions accordingly, the system adapts the layout to maintain both stability and display completeness.
2Manufacturing precision
If menu item positions are adjusted dynamically, then text display completeness improves, but the layout complexity increases
Solution Approach 1:
The system performs self-adjustment by automatically calculating the width of menu item text in the selected language and positioning menu items accordingly. This self-service mechanism eliminates the need for manual layout adjustments for each language, reducing operational complexity while maintaining display precision.
Solution Approach 2:
The system performs preliminary calculation of text width before final positioning. By measuring the actual width occupied by menu item text in advance and using this information to determine appropriate positions, the system simplifies the overall layout process while ensuring complete and non-overlapping display.
3Manufacturing precision
If text width is calculated based on language settings, then text overlap is prevented, but the processing time increases
Solution Approach 1:
The system calculates text width as a preliminary step before final positioning. By measuring the width of menu item text in the selected language beforehand and storing this information, the system prevents overlap while minimizing processing time during actual display operations.
Data Source
AI summary
The present application discloses a GUI method for providing menu items, which is used to automatically adjust display locations of the menu items according to a setting language of a display device. The method includes: displaying an image content in a content display area of a display in response to a first control instruction input by a user and used for displaying the image content; and calculating a layout location of at least one menu item in a menu display area of the display based on a setting language of the display device, where the at least one menu item is configured for the image content and used to perform functions required for the image content; and displaying the at least one menu item based on the calculated layout location.


