Axel Etzold
2006-Jun-05 20:14 UTC
[fxruby-users] Q about combining behaviour of foursplit.rb and shutter.rb
I have a window that is split into four, like in foursplit.rb, where there are four buttons. Using a menu command, one can expand any of these, so that only this button takes the whole space. Now, I want to add a shutter button bar, as there is one in shutter.rb to the left of the main window. The user should have the possibility to "expand" any of the four windows, both from the menu (as in foursplit.rb), and from one set of Shutterbuttons. So far, I''ve tried to change the {}-block of the ShutterButtons to achieve that: shutterItem = ShutterItem.new(@shutter, "Files, data, and pictures", nil, LAYOUT_FILL_Y) ShutterButton.new(shutterItem.content, "Expand dirlist", fatBot).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_TOPLEFT} ShutterButton.new(shutterItem.content, "Expand cell file editor", angryGuy).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_BOTTOMLEFT} ShutterButton.new(shutterItem.content, "Expand tuning curve plot", sawBlade).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_TOPRIGHT} ShutterButton.new(shutterItem.content, "Expand reconstruction plot", redMacOS).connect(SEL_COMMAND) {FX4Splitter::ID_EXPAND_BOTTOMRIGHT} ShutterButton.new(shutterItem.content, "Show all four", redMacOS).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_ALL } But nothing happens. What should I do ? Thank you very much, Best regards, Axel -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer