Difference between revisions of "WxHaskell/Samples"

From HaskellWiki
Jump to navigation Jump to search
(imported)
 
 
Line 1: Line 1:
  +
Moved back to http://wxhaskell.sourceforge.net/samples.html
 
=== Screenshots ===
 
 
Here are some screen shots of examples that are included in the wxHaskell library. The screenshots are taken on various Linux, Windows, and Mac OS X systems. When the screens look differently it is normally due to differences in the native look-and-feel of a platform. Many differences are intentional – one can normally specify the exact appearance if needed.
 
 
'''Hello world''' [[http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxhaskell/wxhaskell/samples/wx source wx], [http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxhaskell/wxhaskell/samples/wxcore source wxcore]]. Let's start with the infamous "Hello World" application. Note how the status bar reflects the menu option. (Note: The "File" menu disappears on the Mac as both menu items are moved to the standard Mac application menu.)
 
 
[[Image:images/helloworld-win.png|Hello world on Windows 2000]] [[Image:images/helloworld-gtk.png|Hello world on GTK (KDE/Linux)]] [[Image:images/helloworld-macosx2.png|Hello world on MacOS X (Panther)]] [[Image:images/helloworld-rh-gtk.png|Hello world on Red Hat Linux (Fedora)]]
 
'''Image viewer''' [[http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxhaskell/wxhaskell/samples/wx source wx], [http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxhaskell/wxhaskell/samples/wxcore source wxcore]]. This example uses a standard file open dialog to open image files in various formats (jpg, gif, png, bmp etc.) and displays them. The windows example shows an image of a notorious Norwegian Haskell hacker skiing on mount Hood. Note the custom application icon.
 
 
[[Image:images/imageviewer-win.jpg|That Barton Fink feeling]]
 
 
[[Image:images/imageviewer-mac.jpg|Image viewer on MacOS X]]
 
Windows XP
 
 
MacOS X
 
And an extended imageviewer with a toolbar and statusbar:
 
[[Image:images/imageviewer-tb-win.jpg|Image viewer on Windows XP]]
 
[[Image:images/imageviewer-tb-gtk.png|Image viewer on Red hat linux with GTK]]
 
Windows XP
 
Red Hat Linux with GTK
 
'''Time flows''' [[http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxhaskell/wxhaskell/samples/wx source wx]]. An old Fran demo! This sample shows how to use the idle event handler to implement a resource aware and responsive GUI that still performs heavy animation. A nice sample to practice on: extend it yourself with menus, status bars, and options dialogs.
 
 
[[Image:images/timeflows-win.png|Time flows like a river on windows XP]]
 
[[Image:images/timeflows-asia-gtk.png|Extended time flows like a river on Linux/GTK]]
 
Basic sample on Windows XP
 
Extended sample on Red Hat Linux with GTK
 
<br />
 
[[Image:images/timeflows-macosx.png|Extended time flows like a river on MacOS X]]
 
Extended sample on MacOS X
 
 
'''Controls''' [[http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxhaskell/wxhaskell/samples/wx source wx]]. A sample that shows different standard controls, like buttons, listboxes, sliders, radio buttons, etc.
 
 
[[Image:images/controls-gtk.png|Controls sample on Red Hat Linux (Fedora)]]
 
[[Image:images/controls-win.png|Controls sample on Windows XP (Classic)]]
 
Red Hat Linux (Fedora)
 
Windows XP (Classic look)
 
<br />
 
[[Image:images/controls-macosx.png|Controls sample on MacOS X (jaguar)]] <br />
 
MacOS X (Jaguar) <br />
 
[[Image:images/controls-macosx2.png|Controls sample on MacOS X (panther)]] <br />
 
MacOS X (Panther)
 
'''FileBrowse''' [[http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxhaskell/wxhaskell/samples/wx source wx]]. A (very) simple file browser that demonstrates the use of tree controls, list controls and splitter windows.
 
 
[[Image:images/filebrowse-win.png|File browser on windows XP]] <br />
 
[[Image:images/filebrowse-macosx2.png|File browser on MacOS X (Panther)]] <br />
 
[[Image:images/filebrowse-gtk.png|File browser on Red hat linux with GTK]]
 
'''Grid''' [[http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxhaskell/wxhaskell/samples/wx source wx]]. Simple demo of the wxGrid control and wxGrid events.
 
 
[[Image:images/grid-win.png|Grid demo on windows XP]] [[Image:images/grid-gtk.png|Grid demo on Linux (Fedora) with GTK]] [[Image:images/grid-macosx.png|Grid demo on MacOS X (Panther)]]
 
'''OpenGL''' [[http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxhaskell/wxhaskell/samples/contrib source contrib]]. Sean Seefried and [http://page.freett.com/shelarcy Shelarcy] have provided these screenshots that demonstrate the wxHaskell [http://wxhaskell.sourceforge.net/doc/Graphics.UI.WXCore.OpenGL.html OpenGL canvas] using the [http://www.haskell.org/HOpenGL HOpenGL] binding by Sven Panne.
 
 
[[Image:images/opengl-bezier-win.png|OpenGL Bezier Curve on Windows]] <br />
 
OpenGL Bezier Curve on Windows.<br />
 
[http://wxhaskell.sourceforge.net/images/opengl-mac.png [[Image:images/opengl-small-mac.jpg|OpenGL Canvas on MacOS X]]] <br />
 
OpenGL Cone on MacOSX (Click image to enlarge)
 
 
[[Category:wxHaskell]]
 

Latest revision as of 15:16, 5 August 2008