4.1. What Makes a Button a Button?
Markup languages like HTML and XUL provide many options for visual display. Sometimes it's hard to tell what is “real” and what is just clever animation and a bit of scripting. The discussion on buttons and widgets starts by looking at what a Mozilla widget really is. Thinking about XML-based widgets can be a bit messy, as the following example shows.
Figure 4.1 is a simple XUL application containing one “real” button and two fakes. Which is the real one? Although the third candidate is in the middle of a mouse-click operation, any of the three could be clicked.
Figure 4.1. Fake and real buttons in Mozilla.
Get Rapid Application Development with Mozilla™ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.