diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-3FE54688-2CDE-5359-9ABB-B83BFA025A81-GENID-1-8-1-6-1-1-4-1-6-1-7-1-3-1.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-3FE54688-2CDE-5359-9ABB-B83BFA025A81-GENID-1-8-1-6-1-1-4-1-6-1-7-1-3-1.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,46 @@ + + + + + +Window-owning +controls and non-window-owning controls +

Controls are similar to windows in the Window Server in that they are both +bounded areas of the screen and both user interface elements. They are not +synonymous, however, as a control may take up the whole of a window’s area +or only part of it. For this reason controls are divided into two types: window-owning +controls and non-window-owning controls.

+
Window-owning controls

A window-owning control +has the same size and position as a window in the Window Server. Window-owning +controls may overlap each other and may be moved around the screen within +the bounds of their parent window. Dialogs, menus, toolbars and top-level +controls are typically window-owning controls.

+
Non-window-owning controls (lodger controls)

The +majority of controls are non-window-owning. A non-window-owning control’s extent typically +covers only part of a window on the screen: usually it is one of a number +of controls within a larger compound control which acts +as a container.

Examples of non-window-owning controls include command +buttons, text boxes and labels.

Non-window-owning controls give greater +efficiency as they require fewer resources in the Window Server and fewer +process switches. They can also result in faster intialisation and redrawing +because a compound control and all its non-window-owning components can be +drawn with a single flush to the window server.

+
Associated windows

All controls have an associated +window, whether they are window-owning or not. For a window-owning +control the associated window is the window it owns. For a non-window-owning +control the associated window is the window owned by the nearest window-owning +control above it in the control hierarchy.

+
See also
    +
  • Window server

  • +
  • Run-time control +hierarchy

  • +
  • How to write +controls

  • +
+
\ No newline at end of file