WideStudio Logo
Programming Guide
WideStudio Index
Table of contents

Sample:1 (Hello World)

Here, you create a project,an application window and event procedures. The following is a rudimentary sample which displays "hello" by pushing the button of the window,

The source code is ws/samples/Ruby/hello/newproject.prj. You can load the project and build by the application builder.

[A view of the application window]

(*Function for the event procedure                          *)
open Swig
open Mwt
open Mwtlib
let btn_proc obj =
  obj -> setProperty("labelString","hello");
let _ = Callback.register "btn_proc" btn_proc

[Executing the application]

Document Release 3.80 for WideStudio ver 3.80, Jan 2005

WideStudio documents index | Table of contents

Copyright(C) WideStudio Development Team, 1999-2005 Last modified: Jan 05, 2005