FXRuby question about FXMainWindow

I am trying to get the event when an FXMainWindow is maximized/restored.

I tried to use:

win.connect(SEL_MAXIMIZE) {…}
win.connect(SEL_RESTORE) {…}

but I never get the events.

Anyone done this?

-rich

···

Rich Kilmer, InfoEther LLC
trap(“SIGINT”) { raise [104, 101, 108, 108].pack(“cccc”) }

Rich Kilmer wrote:

I am trying to get the event when an FXMainWindow is maximized/restored.

It doesn’t look like the main window sends its target a unique message
when the window is maximized or restored (at least not for fox-1.0).
Either of these events would probably trigger a SEL_CONFIGURE message,
however, so you might be able to catch that instead.

I tried to use:

win.connect(SEL_MAXIMIZE) {…}
win.connect(SEL_RESTORE) {…}

but I never get the events.

I think those only get used by the MDI child widgets.