[fxruby-users] Q about combining behaviour of foursplit.rb and shutter.rb
Axel Etzold
AEtzold at gmx.de
Mon Jun 5 16:53:04 EDT 2006
Dear Lyle,
thanks for that. I have yet another *stupid* question.
In the beginning of my script, I call
include Fox,
so the code you gave me now produces
c:/axelhome/ngui/f16.rb:157:in `initialize': uninitialized constant Fox::FX4Splitter::ExpandTopLeft (NameError)
How can I get rid of Fox:: in there ? - I still need it in
another place , though.
Thank you very much!
Best regards,
Axel
> -------- Original-Nachricht --------
> Datum: 5 Jun 2006 20:24:21 -0000
> Von: "lyle at knology.net" <lyle at knology.net>
> An: fxruby-users at rubyforge.org
> Betreff: Re: [fxruby-users] Q about combining behaviour of foursplit.rb and shutter.rb
> 
> On Mon, 05 Jun 2006 22:14:05 +0200, Axel Etzold <AEtzold at gmx.de> wrote :
>
> > 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 ?
>
> Well, your message-handler blocks don't *do* anything (other than evaluate
> the value of a constant like FX4Splitter::ID_EXPAND_TOPLEFT).
>
> I think you want to modify them to call a function on the splitter, for
> example:
>
> ShutterButton.new(shutterItem.content,
> "Expand dirlist",
> fatBot).connect(SEL_COMMAND) {
> four_splitter.expanded = FX4Splitter::ExpandTopLeft
> }
>
> Hope this helps,
>
> Lyle
> _______________________________________________
> fxruby-users mailing list
> fxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/fxruby-users
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
More information about the fxruby-users
mailing list