XML
  Home arrow XML arrow Page 3 - An Introduction to XUL Part 3
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Developerworks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
XML

An Introduction to XUL Part 3
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 7
    2005-06-06

    Table of Contents:
  • An Introduction to XUL Part 3
  • Flex and Grids
  • Groupbox, Stack and Deck
  • Content Elements

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    TestComplete™ automates software testing for a fraction of what the big guys charge. Easy functional and load testing for all Windows, .NET, Java and Web apps. Download a free trial now.

    An Introduction to XUL Part 3 - Groupbox, Stack and Deck
    (Page 3 of 4 )

    Groupbox

    Another positional model that can be used is that of the <groupbox> which stacks child elements in a column and draws a bow around them.   The syntax for this is equally simple, and although one has been provided, an example is not strictly necessary:

    <groupbox>
      <caption label="Groupbox"/>
        <description value="Item1"/>
        <description value="Item2"/>
        <description value="Item3"/>
    </groupbox>
     

    Without a stylesheet to make it look nice, this example is pretty bland, but it demonstrates the use of the groupbox element.

    Stack & Deck

    Other layout methods include the stack and deck elements, both similar but with a subtle difference; both elements place interface elements in a physical stack, placing them on top of each other, but while the stack elements offers transparency, so elements at the bottom of the stack can still be visible, the deck does not, and elements will be seen to cover entirely or overlap depending on their placement.

    <stack>
      <description value="Bottom Stack!"/>
      <description value="Top Stack!"/>
    </stack>
    <spacer height="10"/>
    <deck>
      <description value="Bottom Deck!"/>
      <description value="Top Deck!"/>
    </deck>

    The code above will draw a window with the stack at the top and the deck below.  The stack elements are all displayed at once, hence the incomprehensible garble.  Notice how we have specified two decks, but only one deck is displayed, and this is the bottom one.  When the selectedIndex attribute is not defined, the default value is zero.  Indices, as we all know, tend to be zero based, so the above deck has a max index of 1.  In order to display the top deck, simply add a selectedIndex="1" attribute to the opening deck tag.  Now the top deck will be displayed.  Clearly, the use of a script to modify the selectedIndex value could produce effects similar to basic animation.

    More XML Articles
    More By Dan Wellman


       · Nice to build the interface, but till now i dont know, how to- connect the file...
       · Hi,Glad you liked the article, I'm working an an article that discusses actually...
     

       

    XML ARTICLES

    - How to Set Up Podcasting and Vodcasting
    - Creating an RSS Reader Application
    - Building an RSS File
    - An Introduction to XUL Part 6
    - An Introduction to XUL Part 5
    - An Introduction to XUL Part 4
    - An Introduction to XUL Part 3
    - An Introduction to XUL Part 2
    - An Introduction to XUL Part 1
    - XML Matters: Practical XML Data Design and M...
    - Practical XML Data Design and Manipulation f...
    - SimpleXML
    - XForms Basics, Part 3
    - XForms Basics, Part 2
    - XForms Basics

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway