[fxruby-users] FXSplashWindow

Melton, Ryan rmelton at ball.com
Mon Jan 21 18:39:00 EST 2008


You need to create the application rather than the splash window (it
will get created with the application).  I also recommend doing
PLACEMENT_SCREEN rather than placement owner.  I updated your code
below.
Ryan

-----Original Message-----
From: fxruby-users-bounces at rubyforge.org
[mailto:fxruby-users-bounces at rubyforge.org] On Behalf Of Thomas, Jason M
(Software)
Sent: Monday, January 21, 2008 3:34 PM
To: fxruby-users at rubyforge.org
Subject: [fxruby-users] FXSplashWindow

I saw Jeroen's suggestion on how to use FXSplashWindow on the
foxgui-users list and thought I'd try it.

My attempt was as follows:
  require 'fox16'
  include Fox
  app = FXApp.new("App")
  icon = nil
  File.open('icon.gif', 'rb') { |f|
    icon = FXGIFIcon.new(app, f.read)
  }
  splash = FXSplashWindow.new(app,icon)
  app.create
  splash.show(PLACEMENT_SCREEN)
  app.runModalWhileShown(splash) 

I get a Segmentation fault at the splash.create line. Does
FXSplashWindow work in fxRuby 1.3.13?

Thanks,
Jason Thomas



This message and any enclosures are intended only for the addressee.
Please  
notify the sender by email if you are not the intended recipient.  If
you are  
not the intended recipient, you may not use, copy, disclose, or
distribute this  
message or its contents or enclosures to any other person and any such
actions  
may be unlawful.  Ball reserves the right to monitor and review all
messages  
and enclosures sent to or from this email address.
_______________________________________________
fxruby-users mailing list
fxruby-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/fxruby-users



This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this  
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.


More information about the fxruby-users mailing list