5.1 Examples

RapaGUI comes with a number of examples that demonstrate certain features and should allow you to get started really quickly. Here's a list of examples that are distributed with RapaGUI:

Accelerators
Shows how to set up an accelerator table for advanced keyboard control of your GUI. See Accelerator class for details.
Demo
An extensive showcase of most of the widgets supported by RapaGUI. Take a look at this example to see how the different MOAI classes offered by RapaGUI appear as widgets.
Dialogs
Shows how to use modal dialogs with RapaGUI. This example demonstrates both function-driven dialogs as well as normal modal dialogs. See Dialog class for details.
DragNDrop
Shows how to implement drag'n'drop using RapaGUI.
Dynamic1
Demonstrates how to create new windows at runtime.
Dynamic2
Demonstrates how to create new buttons at runtime.
Dynamic3
Demonstrates how to create new tabs for Pageview class at runtime. See Pageview class for details.
Dynamic4
Demonstrates how to create menus and menu items at runtime.
HTMLView
This is a rudimentary Internet browser written in RapaGUI and Hollywood. It demonstrates HTMLview class. See HTMLview class for details.
Image
This example shows how to embed a Hollywood brush inside your GUI using Image class. See Image class for details.
MultiDisplays
Demonstrates how to embed four different Hollywood displays inside a single RapaGUI window. This shows the magic that is possible when combining Hollywood and RapaGUI. See Hollywood class for details.
Pages
Shows how to create a window with tabbed groups using a Pageview class MOAI object. See Pageview class for details.
Scrollbar
Demonstrates how to attach a scrollbar created using Scrollbar class to a custom-drawn widget. See Scrollbar class for details. Alternatively, you can also use Scrollcanvas class to achieve the same thing. See below for an example.
Scrollcanvas
This example demonstrates another way of using scrollbars and widgets with custom graphics in RapaGUI. This time Scrollcanvas class is used to See Scrollcanvas class for details. The same thing is also possible by using Scrollbar class. See above for an example.
ShowHide
Shows how to show and hide MOAI objects at runtime by setting the Area.Hide attribute.
SongPlayer
This is an audio file player written in RapaGUI.
TextEditor
A little text editor written in Hollywood. It also demonstrates how to use a toolbar and a status bar.
Treeview
Demonstrates how to create a multi-column treeview in RapaGUI using Treeview class. See Treeview class for details.
VideoPlayer
This is a video player written in RapaGUI. It shows how to embed a Hollywood display inside a RapaGUI window using Hollywood class. See Hollywood class for details. Furthermore, it also demonstrates how to use image buttons, a listview with images and slider objects.


Show TOC