Jump to content

Panel (computer software)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 69.125.110.223 (talk) at 14:40, 21 October 2008. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In graphical computer software a panel is :

Panels in Widget Toolkits

Panels in Widget toolkits often have no specific graphic characteristics, but are mainly used to group children widgets together. They allow to have a better control on the layout of the widgets.

For example, in this XUL definition, two horizontal hbox panels are enclosed in a vertical vbox panel, alongside with two buttons. This allows to be sure that the label and the textboxes for the Login and the Password fields are correctly aligned.

<vbox>
  <hbox>
    <label control="login" value="Login:"/>
    <textbox id="login"/>
  </hbox>
  <hbox>
    <label control="pass" value="Password:"/>
    <textbox id="pass"/>
  </hbox>
  <button id="ok" label="OK"/>
  <button id="cancel" label="Cancel"/>
</vbox>

XUL Example

See also

  • Layout managers, used in Widget toolkits, are software components which have the ability to layout widgets by their relative positions without using distance units.