O'Reilly logo

Rapid Application Development with Mozilla™ by Nigel McFarlane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4.6. Hands On: NoteTaker Buttons and Themes

In the last two chapters, we added layout structure and basic textual content to the NoteTaker application. In this chapter we'll add buttons. The job is to

  • Turn the Save and Cancel operations into buttons.

  • Temporarily turn the Edit and Keywords operations into buttons. In a later chapter we'll get a proper tab control, supplying tab-like buttons, for this control.

  • Put theme support in.

The XUL file that contains the application window we're developing is the only file that needs substantial changing. The required changes for the buttons are very simple, as Listing 4.4 shows.

Listing 4.4. NoteTaker changes required to turn text into buttons.
 <!-- change this: --> <text value="Cancel"/> <spacer flex="1"/> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required