[fxruby-users] setCurrent switcher index out of bounds problem

lyle at knology.net lyle at knology.net
Tue Jun 6 10:02:09 EDT 2006

On Tue, 06 Jun 2006 09:49:56 +0200, Axel Etzold <AEtzold at gmx.de> wrote :

> Now, I need to add the possibility to switch between
> different layers of the right pane, just like in the
> shutter.rb application, where you press one of the
> ShutterButtons on the left to have that behaviour.


> Then, I get the error below.
> What is the problem here ?

Looking at your code example, I don't see where you're actually adding any
content to the switcher. It's empty, so when you tell it to switch to a
different page (by setting @switcher.current to a new value) you're getting
an error.

More information about the fxruby-users mailing list