Size to content windows for computer graphics
Abstract
Described is a method and system by which a computer program window is sized based on the content to display. The window may automatically resize itself as content changes. When laying out an element tree of elements that contain the content, the elements provide desired size information to a parent container, and so on, up to the root element (e.g., a window). If a window property is set to size to the content, a window size is computed during layout, having a height and/or width based on the child elements plus X and Y deltas for a window non-client area and borders. Logic attached to window message handling controls changes to the content/window, such as to automatically resize for changed content, and to selectively turn off or persist the size to content property. Sizing to content may be programmatically limited to one dimension, with the other dimension fixed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 24 · Forward citations: 24.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a computing environment, a method for dynamically sizing a window based on the size of content that is being displayed within the window, wherein the content being displayed within the window is represented by elements in a tree of elements with a root element representing the window, the method comprising: providing at least two window states, said window states comprising: a first state in which a window is automatically resized when content within the window is changed; and a second state in which the window is not automatically resized when the content within the window is changed, wher
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 24 total)
References Cited — Backward Prior Art (24)
Non-Patent Literature (1)
- IE Window Resizer, Interactive Tools, Apr. 9, 2001. Pages:2 (Provides interactive window resizing).