Prev | Current Page 98 | Next

David Berube

"Practical Reporting with Ruby and Rails"

create
mainWindow.show( PLACEMENT_SCREEN )
The second line calls the show method, which, logically enough, shows the main window.
The PLACEMENT_SCREEN constant specifies that the window should be centered on the
screen.
As you can see, it??™s reasonably easy to create different types of controls: command
buttons, text fields, radio (often called ???option???) buttons, check boxes, and so forth. (See
the FXRuby documentation at http://www.fxruby.org/ for information about the other
controls available and how they work.) Now let??™s apply the same basic techniques to a
slightly more complicated example.
Graphing Team Performance on the Desktop
Let??™s say that Transmegtech Studios is reworking the artificial intelligence in its new strategy
game using the graphs created in Chapter 3. However, the graphs were created as
PNG files, and the chief executive officer (CEO) of the company does not know how to
view PNGs. He wants to be able to click an icon on his desktop and launch an application
that lets him view charts by clicking a player in a list.


Pages:
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
Hotel spa bilety lotnicze Noclegi Władysławowo koszule korporacyjne Apartamenty nad morzem