[Fxruby-users] Help me preserve my sanity - why doesn't this work?
Status: Inactive
Brought to you by:
lyle
From: Nathaniel T. <nat...@ta...> - 2003-08-28 13:46:33
|
I feel like I'm going bananas here... I was going to build a simple = example of another problem I'm having, but cannot for the life of me get my = simple example to work! I have what I _think_ is the functional equivalent of = the code below in my main app, and it works fine. However, when I run this = code, I get the "PRESSED" message from the button but no matter how many times = I minimize the window, I never get "UNMAPPED": require 'fox' include Fox app =3D FXApp::new window =3D FXMainWindow::new(app, "Test", nil, nil, DECOR_ALL, 0, 0, = 100, 100) window.connect(SEL_UNMAP){p "UNMAPPED"} button =3D FXButton::new(window, "Test") button.connect(SEL_COMMAND){p "PRESSED"} app.create window.show app.run Oh, and it doesn't seem to matter what event I connect to on the window = - I don't get any of them <sigh>. Any help would be greatly appreciated. Once I have my "Duh!" moment for this code, I'll post the original = problem I was having. Thanks, Nathaniel <:((>< |