Is there a way to make FOX/Ruby applications look
like real Windows apps?
Ie, such that when you double click them, you
don’t get a separate DOS window?
Is there a way to make FOX/Ruby applications look
like real Windows apps?
Ie, such that when you double click them, you
don’t get a separate DOS window?
I think you can use a .rbw extension instead of
.rb…
Hal
----- Original Message -----
From: “Harry Ohlsen” harryo@qiqsolutions.com
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Monday, February 10, 2003 4:54 PM
Subject: FOX-based Windows GUIs
Is there a way to make FOX/Ruby applications look
like real Windows apps?Ie, such that when you double click them, you
don’t get a separate DOS window?
Harry Ohlsen wrote:
Is there a way to make FOX/Ruby applications look like real Windows apps?
Ie, such that when you double click them, you don’t get a separate DOS
window?
(This is not FOX-specific.)
Yes. If you’re using the Pragmatic Programmer’s Ruby installer for
Windows, just change the extension on your Ruby program from “.rb” to
“.rbw”. Files with a “.rb” extension are associated with the
console-mode version of ruby (ruby.exe), while files with a “.rbw”
extension are associated with the windows-mode version (rubyw.exe).
Just wanted to provide a word of warning though.
If you plan on capturing the output of a system command and display it in an FXText for example,
running via rubyw.exe doesn’t work all that well. Apparently the output of the command is lost
before you can capture it.
Jason
— Lyle Johnson lyle@users.sourceforge.net wrote:
Harry Ohlsen wrote:
Is there a way to make FOX/Ruby applications look like real Windows apps?
Ie, such that when you double click them, you don’t get a separate DOS
window?(This is not FOX-specific.)
Yes. If you’re using the Pragmatic Programmer’s Ruby installer for
Windows, just change the extension on your Ruby program from “.rb” to
“.rbw”. Files with a “.rb” extension are associated with the
console-mode version of ruby (ruby.exe), while files with a “.rbw”
extension are associated with the windows-mode version (rubyw.exe).
Thanks for the warning. This isn’t an issue in my particular program, but
it’s definitely something to remember for future apps.
On Tue, 11 Feb 2003 12:43, Jason Persampieri wrote:
Just wanted to provide a word of warning though.
If you plan on capturing the output of a system command and display it in
an FXText for example, running via rubyw.exe doesn’t work all that well.
Apparently the output of the command is lost before you can capture it.