954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?

Adding a button using FXRuby

0
By Dark_Omen on Jan 21st, 2005 8:55 am

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.

require 'fox'

include Fox

theApp = FXApp.new

theMainWindow = FXMainWindow.new(theApp, "Hello, World")
FXButton.new(theMainWindow, "Hello, World!")
theApp.create

theMainWindow.show

theApp.run

I always wondered what ruby looked like.

Thanks Dark

vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

Your welcome. Ruby is a fun language to learn.

Dark_Omen
Posting Pro
573 posts since Apr 2004
Reputation Points: 23
Solved Threads: 6
 

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!

vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

Mr. Omen,

your code samples a plane riboff from the examples that come with the download. Can't you apply a little imagination?

bumsfeld
Nearly a Posting Virtuoso
1,445 posts since Jul 2005
Reputation Points: 404
Solved Threads: 184
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You