diff --git a/examples/RAA.rb b/examples/RAA.rb index 8d42598bc94a646e7dcbb720ef000bfecb02b759..cc5065c58f56c72dd92d7aaf72e6a6efe987dfeb 100755 --- a/examples/RAA.rb +++ b/examples/RAA.rb @@ -1,5 +1,11 @@ -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 diff --git a/examples/babelfish.rb b/examples/babelfish.rb index 7184429fa2ab9c204d5847b16c31a99cb2a5c380..e9d41a5d975a419f19eee03e9cacdb5c28210757 100755 --- a/examples/babelfish.rb +++ b/examples/babelfish.rb @@ -1,7 +1,14 @@ #!/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 diff --git a/examples/canvasdemo.rb b/examples/canvasdemo.rb index 17175aa61d95284b82ca374c7695026d17625415..06b05e82a42b00e0f36488f04d91505c6c24f4b5 100755 --- a/examples/canvasdemo.rb +++ b/examples/canvasdemo.rb @@ -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 diff --git a/examples/charts.rb b/examples/charts.rb index b3e172067f0f1c95f90a487b7590a1bc4bf7d091..730f1f8bd99d1e98ffba4a9c81986fbe6d43c193 100644 --- a/examples/charts.rb +++ b/examples/charts.rb @@ -1,6 +1,13 @@ 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 diff --git a/examples/iRAA.rb b/examples/iRAA.rb index 72c23473e4a2d6bce5040c6b64558515d133e159..61510e8e9dee20593538e301763997fa7a8a008f 100755 --- a/examples/iRAA.rb +++ b/examples/iRAA.rb @@ -1,4 +1,10 @@ -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 diff --git a/examples/raabrowser.rb b/examples/raabrowser.rb index 4ba7888e2db88ee5e905fb9f314ef06f739e99c6..34073d6f4483d54ae84b2742d5cc46536969403a 100755 --- a/examples/raabrowser.rb +++ b/examples/raabrowser.rb @@ -1,6 +1,12 @@ 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 diff --git a/examples/rmagick.rb b/examples/rmagick.rb index 5bde55e0462526ac0339dfbcc104869ce5e61731..f1c221b7bb708309bbc21646223697507e0c4d9d 100755 --- a/examples/rmagick.rb +++ b/examples/rmagick.rb @@ -1,5 +1,11 @@ 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