[fxruby-users] SEL_MAXIMIZE, SEL_MINIMIZE, and SEL_RESTORE not working for FXMainWindow

Melton, Ryan rmelton at ball.com
Thu Jan 10 13:58:34 EST 2008


Hi,

I am running on Windows XP SP2 using FXRuby 1.6.11 which uses FOX
version 1.6.25.

The SEL_MAXIMIZE, SEL_MINIMIZE, and SEL_RESTORE handlers do not seem to
ever get called for an FXMainWindow.

Can anyone else recreate this?  Here is a simple example program:  The
SEL_CLOSE works but none of the other handlers.


$VERBOSE = nil
require 'fox16'
$VERBOSE = true

include Fox

class Test < FXMainWindow

  def initialize(app)
    super(app, "Test", nil, nil, DECOR_ALL, 0, 0, 750, 500)

    self.connect(SEL_CLOSE) do |sender, sel, data|
      puts "CLOSE"
      0
    end

    self.connect(SEL_MAXIMIZE) do |sender, sel, data|
      puts "MAXIMIZE"
      0
    end

    self.connect(SEL_RESTORE) do |sender, sel, data|
      puts "RESTORE"
      0
    end
    
    self.connect(SEL_MINIMIZE) do |sender, sel, data|
      puts "MINIMIZE"
      0
    end
  end
  
  def create
    super
    show(PLACEMENT_SCREEN)
  end
end

application = FXApp.new("Test", "Test")
Test.new(application)
application.create
application.run



Thanks,
Ryan



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