User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Ruby section within the Web Development category of DaniWeb, a massive community of 332,788 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,993 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Ruby advertiser: SELL YOUR PRODUCT TODAY !
Jan 20th, 2005
Views: 1,999
This is kind of an extension to my previous code snippet. This language is really fun to use. I find it pretty easy to use and understand. This will create a window with a button.
ruby Syntax | 3 stars
  1. require 'fox'
  2.  
  3. include Fox
  4.  
  5. theApp = FXApp.new
  6.  
  7. theMainWindow = FXMainWindow.new(theApp, "Hello, World")
  8. FXButton.new(theMainWindow, "Hello, World!")
  9. theApp.create
  10.  
  11. theMainWindow.show
  12.  
  13. theApp.run
Comments (Newest First)
bumsfeld | Practically a Posting Shark | Aug 6th, 2005
Mr. Omen,

your code samples a plane riboff from the examples that come with the download. Can't you apply a little imagination?
vegaseat | Kickbutt Moderator | Jan 27th, 2005
Okay Dark,
I expectect your scientific treatise on dichromatic bit warp in hyperspace by the end of the year! Ruby should make the postulates easy!
Dark_Omen | Posting Pro | Jan 21st, 2005
Your welcome. Ruby is a fun language to learn.
vegaseat | Kickbutt Moderator | Jan 21st, 2005
I always wondered what ruby looked like.

Thanks Dark
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 10:02 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC