FXRuby is one of the most popular libraries for developing graphical user interface applications in Ruby. This book is the quickest and easiest way to get started developing GUI applications using FXRuby. With a combination of tutorial exercises and focused, technical information, this book goes beyond the basics to equip you with proven, practical knowledge and techniques for developing real-world FXRuby applications. Learn directly from the lead developer of FXRuby and you’ll be writing powerful and sophisticated GUIs in your favorite programming language.

Read an interview with the author and excerpt at InfoQ.com

Out of Print

This book is currently out of print.

About this Book

  • 240 pages
  • Published:
  • Release: P1.0 (2008-04-07)
  • ISBN: 978-1-93435-607-4

FXRuby is a highly object-oriented toolkit for building lean, mean, cross-platform graphical user interfaces in Ruby. Since its initial release in 2001, FXRuby has become one of the most popular GUI choices for Ruby developers. This book is your best resource for rapidly learning how to develop powerful, sophisticated GUIs in your favorite programming language. If you’re a newcomer to GUI programming, this book will introduce you to the basics of FXRuby programming by leading you through building a GUI application with FXRuby from start to finish. If you’re an experienced software developer who just needs to get up to speed on FXRuby and what it can do for you, this book will help you put FXRuby to work in your Ruby-based applications. Along the way, you’ll learn how to leverage FXRuby’s vast collection of user interface elements to build visually rich user interfaces. You’ll see how FXRuby uses the concept of sending messages between objects to implement eventdriven applications, and how you can most effectively use layout managers to construct flexible user interfaces. Go beyond the basics with proven, practical knowledge and techniques for developing real-world GUI programs in Ruby.

Contents and Extracts

Full table of contents
  • Building an FXRuby Application
    • Getting Started With FXRuby
    • The Picture Book Application
    • Take 1: Display a Single Photo
    • Take 2: Display an Entire Album
    • Take 3: Managing Multiple Albums
  • FXRuby Fundamentals
    • FXRuby Under the Hood
    • Building Simple Widgets
    • Sorting Data with List and Table Widgets
    • Editing Text with The Text Widget
    • Creating Visually Rich User Interfaces
    • Managing Layouts
    • Advanced Menu Management
    • Providing Support with Dialog Boxes
    • Bibliography

About the Author

Lyle Johnson is the lead developer of FXRuby, one of the most popular graphical user interface libraries for the Ruby programming language. An active participant in the Ruby programming community since 2000, he also co-authored the Ruby Developer’s Guide, one of the first English-language books about Ruby. For the past fifteen years, he’s developed software applications for a variety of industries, including engineering modeling and simulation, biotechnology and computer network defense.