Questions tagged [fxruby]

FXRuby is a well documented graphics library in the scripting language Ruby.

FXRuby is a well documented graphics library in the scripting language Ruby.

34 questions
8
votes
4 answers

Ruby GUI (non-complex layouts)

I've done quite a bit of research on Ruby GUI design, and it appears to be the one area where Ruby tends to be behind the curve. I've explored the options of MonkeyBars, wxRuby, fxRuby, Shoes, etc. and was just wanted to get some input from the…
Ruby Novice
  • 101
  • 5
2
votes
1 answer

fxruby Progressbar width

I don't know if I'm getting the whole documentation totally wrong but there is an issue I'm dealing with since two days and I just don't get what I'm doing wrong. I'm using fxruby to built a small GUI, and I need a progressbar within that. When I…
rtuz2th
  • 79
  • 8
2
votes
2 answers

Installed fxruby over macports, now rubygems is broken

I installed fxruby using $sudo port install rb-fxruby As suggested in the book. It works, my hello world program worked correctly. Now, though, other code that I have written is broken, whenever I try to use any code that relies on a gem, it does…
Joshua Cheek
  • 30,436
  • 16
  • 74
  • 83
2
votes
0 answers

How to change caret style of a fxruby text field?

I am building a small IDE with fxruby. The default caret of FXTextField is a little bit ugly (a big tall thin 'I'), I hope I could change the caret style but can't find any help after several hours of googling. Any hint?
luikore
  • 750
  • 5
  • 16
1
vote
2 answers

Installing the FXRuby Gem

I'm trying to install the FXRuby gem. I've installed Ruby and Fox with Homebrew on Mac OS 10.7 and I can't figure out how to make it work. Has anyone? Heres the error print out I have received: gem install fxruby Building native extensions. This…
user180825
1
vote
1 answer

FXRuby Fox::FXText breaks on threaded append

I am trying to make a socket application with FXRuby, and everything works fine until the scroll bar gets added, and then the application crashes. doing research shows that the threading is the issue, but i dont know any work around. any ideas? this…
1
vote
1 answer

How does one "unselect" previously selected button when re-enabling

I have an old-school programming background, but am new to Ruby: For a Hangman game I have A..Z buttons connected via FXDataTarget (set to -1 so that first button is not auto-selected). During play, as each button is pressed it is disabled. To…
Arbuthnut
  • 11
  • 1
1
vote
1 answer

Making a gradient in FXRuby

Is there a way to create a gradient in FXRuby? If so, how would I implement it? I have tried looking at https://www.rubydoc.info/gems/fxruby/Fox/FXImage and it didn't make much sense to me, If I could get elaboration on what #gradient means and how…
user11257686
1
vote
1 answer

how do I display a googlechart in ruby?

I was wondering how to display a chart made with gchartrb in ruby. I tried to do it by simply requiring the picture from the URL given but that gives the error "Bad URI". how do I do it? thanks require 'rubygems' require 'google_chart' # Pie…
Adam Ashwal
  • 1,472
  • 1
  • 19
  • 36
1
vote
1 answer

FXMessageBox in Ruby

I'm working with FXRuby, and I'm trying to figure out how to have an error dialog box, similar to JOptionPane.showMessageDialog(null, "Error", "Error!", JOptionPane.ERROR_MESSAGE); in Java. The closest equivalent I have found is…
Eli Sadoff
  • 7,173
  • 6
  • 33
  • 61
1
vote
1 answer

FXRuby FXFileDialog box default directory

In FXRuby; how do I set the FXFileDialog to be at the home directory when it opens?
Boiler Bill
  • 1,900
  • 1
  • 22
  • 32
1
vote
0 answers

Changing between panels on FXWizard

I'm trying to set up an installation wizard, which has just 3 steps. However, I'm stuck with moving between panels. I understand that setCurrentPanel can be used to change the present panel, but when I just try to move it from 0 to 1, it raises an…
Swaathi Kakarla
  • 2,227
  • 1
  • 19
  • 27
1
vote
1 answer

Using FXRegistry to store persistent data in FXRuby

I'm using FXRegistry to store the username and password, so that I can authenticate with my web service. When a user logs in, the username and password get written to the FXRegistry, and everything seems great. But when I exit out of the application…
Swaathi Kakarla
  • 2,227
  • 1
  • 19
  • 27
1
vote
0 answers

FXRuby move png image on canvas?

I am writing a program in which the user needs to be able to move an image around a canvas using his/her mouse. Is this possible to do in FXRuby, and, if so, how? I'm relatively new to programming, so any help would be appreciated. Thank you
Jay313
  • 11
  • 1
1
vote
3 answers

Installing FxRuby on Windows

Simple question: How to install FxRuby on windows. I have installed ruby 1.9 using one click installer from http://rubyinstaller.org/
Moustafa
  • 45
  • 2
  • 7
1
2 3