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,956 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: 2,602
This is a basic window coded in Ruby. To download Ruby go to www.ruby-lang.org and download the latest version. The latest version includes the FX toolkit that is needed to create this window.
ruby Syntax | 4 stars
  1. require 'fox'
  2. include Fox
  3.  
  4. theApp = FXApp.new
  5.  
  6. theMainWindow = FXMainWindow.new(theApp, "Hello, World")
  7. theApp.create
  8.  
  9. theMainWindow.show
  10.  
  11. theApp.run
Comments (Newest First)
Dark_Omen | Posting Pro | Jan 23rd, 2005
Yup
vegaseat | Kickbutt Moderator | Jan 23rd, 2005
The samples I ran were console samples that came with Ruby. I was hoping the results would show up in the Output View of FreeRide. Looks like I have to put the directive #!/usr/bin/env ruby in at the start of code to get the console compiled properly (similar to Python). I will test your code after I installed FOX and FXRuby. Thanks...
Dark_Omen | Posting Pro | Jan 23rd, 2005
Does a dos promt window open as well as a normal looking window? Did you get FXRuby. You can get the one click installer and that would get you everything you need. I don't think the final version is working properly, but I have a working one that I can send you if you want.
vegaseat | Kickbutt Moderator | Jan 23rd, 2005
Greetings Dark! I downloaded Ruby. The sample codes look a little like a mix of Python, Java and C. Got the FreeRide IDE going, cute, but nothing shows up in the output window after running the code. Is there a trick?
Dark_Omen | Posting Pro | Jan 22nd, 2005
I realized I didn't mention what exactly to download. On www.ruby-lang.org, on the right side there is a thing that says download. Once you are on that page find the link that says one click installer. This comes with FreeRIDE which you can write the programs and run them in. Also I download one of them to see if it worked, and it didn't (the final version). The only one that I know of that works is 1.8.2 rc 9, and they dont have it posted, but I can e-mail it to anybody upon request.
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:04 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC