Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Two Ways to Dynamically Scale Controls

IP.com Disclosure Number: IPCOM000104674D
Original Publication Date: 1993-May-01
Included in the Prior Art Database: 2005-Mar-19
Document File: 2 page(s) / 38K

Publishing Venue

IBM

Related People

Otto, SE: AUTHOR [+2]

Abstract

All window development tools allow the developer to lay out controls in the client area of their windows. None, however, give the developer the ability to let the control automatically adjust its size based on the size of the frame window. For example, the developer may want a listbox to be the same size as the client window. This is fine until the window is resized. Without any coding on the developers part, the listbox will stay the same static size. By giving the developer, at window editing/design time, the ability to say that he wants this control to always stay in proportion with the client, the code to handle that can be generated by the development tool.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 84% of the total text.

Two Ways to Dynamically Scale Controls

      All window development tools allow the developer to lay out
controls in the client area of their windows.  None, however, give
the developer the ability to let the control automatically adjust its
size based on the size of the frame window.  For example, the
developer may want a listbox to be the same size as the client
window.  This is fine until the window is resized.  Without any
coding on the developers part, the listbox will stay the same static
size.  By giving the developer, at window editing/design time, the
ability to say that he wants this control to always stay in
proportion with the client, the code to handle that can be generated
by the development tool.

      There are two different methods of this dynamic scaling of
controls.  One is to specify that the size and/or position of the
control will be relative to the size of the client.  For example, if
the window is doubled in width, the control could be doubled in width
and the horizontal position could also be altered to keep the control
in same relative position of the client.  The second case is where
the developer wishes the edges of the control to always be a certain
(static) distance from edge of the client.  In Presentation Manager*,
this automatically occurs to the bottom and left edge but not to the
top and right edge.  The listbox example above is where this might be
applicable.  If only the first method is used, the listbox will
slowly g...