There is also an easily coded way of placing buttons automatically into a horizontal toolbar that sits near the top of the page: <toolbox> The toolbar should reside within a toolbox and to make use of the functionality of the collapse/expand arrow (known as a grippy) at the far left of the toolbar, the id attribute should always be used with the <toolbar> element. Those used to HTML will find the form-like elements of XUL very easy to get to grips with; XUL offers all of the standard form elements such as radio buttons, checkboxes, drop-down or combo boxes and text fields, which are known as controls. The following code illustrates the use of these controls: <checkbox label="I am a checked checkbox!" checked="true"/> This should be added below the existing button code, and upon execution, you will find these controls below your buttons.
blog comments powered by Disqus |