XUL

From Gui

(Difference between revisions)
(Layouts)
 
(7 intermediate revisions not shown)
Line 1: Line 1:
-
http://www.mozilla.org/projects/xul/xul.html
+
https://developer.mozilla.org/en/XUL_controls
 +
 
 +
== Widgets ==
 +
 
 +
Root element acts as [[Widget/Frame]]
 +
 
 +
* <groupbox> [[Widget/Frame]]
 +
** &lt;caption&gt; (not really a widget, more a property of <groupbox>)
 +
* <description> (not associated with a wigdet) [[Widget/Label]]
 +
* <label> (always associated with a widget) [[Widget/Label]]
 +
* <image> [[Widget/Label]]
 +
* <spacer> (does this really count as a widget?)
 +
* <button> [[Widget/Button]]
 +
** type=checkbox [[Widget/Checkbox]]
 +
** type=radio [[Widget/Checkbox]]
 +
* <toolbarbutton> [[Widget/Button]]
 +
* <checkbox> [[Widget/Checkbox]]
 +
* <radiogroup> [[Widget/Container]]
 +
** <radio> [[Widget/Checkbox]]
 +
* <tabs>
 +
** <tab>
 +
* <menulist> (combo box)
 +
** <menupopup>
 +
*** <menuitem>
 +
* <listbox> [[Widget/Listbox]]
 +
** <listitem> (not really a widget, just part of the semantics of <listbox>)
 +
* <colorpicker>
 +
* <datepicker>
 +
* <timepicker>
 +
* <progressmeter>
 +
* <richlistbox>
 +
* <scale>
 +
* <textbox> [[Widget/Textarea]]
 +
* <tree>
 +
 
 +
== Layouts ==
 +
 
 +
<hbox>, <vbox>, <grid>, very similar to [[Tk]] and [[GTK+]]
 +
 
 +
== Properties ==
 +
 
 +
* id
 +
* class
 +
* align
 +
* dir
 +
* flex
 +
* ordinal
 +
* orient
 +
* pack
 +
* hidden
 +
* collapsed
 +
* observes
 +
* width, minWidth, maxWidth
 +
* height, minHeight, maxHeight
 +
* tooltipText
 +
* statusText
 +
* allowEvents
 +
* style
 +
 
 +
=== <textbox> ===
 +
 
 +
* multiline
 +
* type (number or password)
 +
 
 +
=== <listbox> ===
 +
 
 +
* seltype (single or multiple)
 +
 
 +
=== <menulist> ===
 +
 
 +
* editable
 +
 
 +
=== non-label controls ===
 +
 
 +
* disabled
 +
* tabindex
 +
* controllers
 +
 
 +
=== <button> ===
 +
 
 +
NOTE: label and image can be children or properties
 +
 
 +
* image
 +
* label <!-- text -->
 +
* crop
 +
* accessKey
 +
* command
 +
* dlgType
 +
 
 +
NOTE: type=menu with <menupopup> for popup menu
 +
 
 +
==== type=checkbox or type=radio ====
 +
 
 +
* checked
 +
* checkState
 +
* autoCheck
 +
 
 +
=== <label> ===
 +
 
 +
* control
 +
 
 +
=== <image> ===
 +
 
 +
* src
 +
 
 +
== Events ==

Current revision as of 20:55, 15 June 2009

https://developer.mozilla.org/en/XUL_controls

Contents

[edit] Widgets

Root element acts as Widget/Frame

[edit] Layouts

<hbox>, <vbox>, <grid>, very similar to Tk and GTK+

[edit] Properties

  • id
  • class
  • align
  • dir
  • flex
  • ordinal
  • orient
  • pack
  • hidden
  • collapsed
  • observes
  • width, minWidth, maxWidth
  • height, minHeight, maxHeight
  • tooltipText
  • statusText
  • allowEvents
  • style

[edit] <textbox>

  • multiline
  • type (number or password)

[edit] <listbox>

  • seltype (single or multiple)

[edit] <menulist>

  • editable

[edit] non-label controls

  • disabled
  • tabindex
  • controllers

[edit] <button>

NOTE: label and image can be children or properties

  • image
  • label
  • crop
  • accessKey
  • command
  • dlgType

NOTE: type=menu with <menupopup> for popup menu

[edit] type=checkbox or type=radio

  • checked
  • checkState
  • autoCheck

[edit] <label>

  • control

[edit] <image>

  • src

[edit] Events

Personal tools