From: Alan Chen Date: 2002-08-29T03:25:54+09:00 Subject: Re: Novice needs help with FX Ruby Just so you know, this is ruby, but mostly calls the the FXruby fox gui extension to ruby. On Thu, Aug 29, 2002 at 02:51:06AM +0900, ck wrote: > Hi, > > I have very limited programming experience but am trying to figure out > Ruby. Can someone please help me decipher this simple program found > in the samples included with FXRuby: ( The tutorial located here > http://www.fxruby.org/doc/tutorial1.html was of some help, but I am > still not getting it) > > #!/usr/bin/env ruby > > require "fox" > > include Fox > > application = FXApp.new("Hello", "FoxTest") > application.init(ARGV) > main = FXMainWindow.new(application, "Hello", nil, nil, DECOR_ALL) > FXButton.new(main, "&Hello, World!", nil, application, FXApp::ID_QUIT) > application.create() > main.show(PLACEMENT_SCREEN) > application.run() These are all FOX specific items. Look at fox-toolkit.org for documentation of the FOX toolkit in general and http://www.knology.net/~lyle/fox/1.0/api/ For specific API documentation. > 1) what is this nil, nil, DECOR_ALL about? > 2) FX::ID_QUIT ? > 3) PLACEMENT_SCREEN ? > 4) What is contained in the Fox.so file? How can I view its contents? You can ask ruby itself: ruby -rfox -e "Fox.constants.each { |con| puts con}" Or more clearly sorted: ruby -rfox -e "Fox.constants.sort.each { |con| puts con}" > Thanks in advance > -- Alan Chen Digikata LLC http://digikata.com