Skip to content
Snippets Groups Projects
Commit c83dd9da authored by D.M.G's avatar D.M.G
Browse files

Fixed few examples to work and added some warning strings on apps which...

Fixed few examples to work and added some warning strings on apps which doesn't work unless you have a explicit gem installed.
parent 6c2ea032
No related branches found
No related tags found
No related merge requests found
require 'soap/rpc/driver'
require 'iRAA'
begin
require 'soap/rpc/driver'
require 'iRAA'
rescue LoadError
warn("Sorry, at the moment this example is not working.")
sleep(5)
exit(false)
end
module RAA
extend SOAP
......
#!/usr/bin/env ruby
require 'fox16'
require 'tranexp'
begin
require 'tranexp'
rescue LoadError
warn("LoadError: To execute this app you need to have 'tranexp' gem installed.")
sleep(5)
exit(false)
end
include Fox
......
......@@ -10,7 +10,7 @@ class CanvasDemo < FXMainWindow
super(app, "Canvas Demo", nil, nil, DECOR_ALL, 0, 0, 800, 600)
# Menu bar
menu_bar = FXMenubar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
menu_bar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
# File menu
file_menu = FXMenuPane.new(self)
......@@ -53,7 +53,7 @@ class CanvasDemo < FXMainWindow
FXMenuTitle.new(menu_bar, "&Help", nil, help_menu)
# Status bar
FXStatusbar.new(self,
FXStatusBar.new(self,
LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER)
# Shapes canvas fills the remainder
......
require 'fox16'
require 'google_chart'
require 'open-uri'
begin
require 'google_chart'
require 'open-uri'
rescue LoadError
warn("LoadError: To execute this app you need to have 'google_chart' gem installed.")
sleep(5)
exit(false)
end
include Fox
......
require 'soap/mapping'
begin
require 'soap/mapping'
rescue LoadError
warn("Sorry, at the moment this example is not working.")
sleep(5)
exit(false)
end
module RAA; extend SOAP
......
require 'fox16'
require 'cgi'
require 'soap/wsdlDriver'
begin
require 'cgi'
require 'soap/wsdlDriver'
rescue LoadError
warn("Sorry, at the moment this example is not working.")
sleep(5)
exit(false)
end
include Fox
......
require 'fox16'
require 'RMagick'
begin
require 'RMagick'
rescue LoadError
warn("LoadError: To execute this app you need to have 'RMagick' gem installed.")
sleep(5)
exit(false)
end
include Fox
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment