Visual Ruby - implementing multiple ListViews

I’m really struggling to understand how I may implement a single window
with multiple ListViews.

Using the example http://visualruby.net/site/ListView%20Tutorial.html

I wish to have multiple folder lists within one window. Any help would
be very much appreciated.

Create a new window in glade. Add 2 vboxes named vbox1 and vbox2. Then
you can add a listview to each box:

I think this works:

def before_show()
@vbox1 = VR::ListView.new(hash)
@vbox2 = VR::ListView.new(hash2)
end

If the = doesn’t work then try this:

@builder[“vbox1”].add(VR::ListView.new(hash))

This will fill the vboxes with the listviews. Of course, you may wish
to populate them first.

Eric

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service