Hey guys,<br><br>Well, I got some time to put something simple together. Fortunatly Alex, it's not a fully attached type of deal, as looking at the original Fox example, it's just like utilizing Wx::Notebook. What I've done, is a simple bit of code, that works similar to how FXShutter works, except for a few differences.<br>
<br>One, it's wxRuby, not Fox, so keep that in mind, but the basics of it, are these:<br><br>shutter.rb<br>Creates the class Wx::Shutter<br>It has three Methods within it:<br><br>Wx::Shutter.new(parent,id)<br><br>Creates a New Shutter Object.<br>
<br>Wx::Shutter#add_header(title)<br><br>Creates a New Header Button, which will toggle the associated list of items with it. Returns the instance of Wx::Button used.<br><br>Wx::Shutter#add_item(header,text,icon=NullBitmap)<br>
<br>Add's a new item to the Header in question (Using the returned Wx::Button).<br><br>There is a Custom event created for notifying the programmer of when an item has been selected within the headings.<br><br>ShutterEvent<br>
<br>ShutterEvent#header<br><br>Returns the Header Wx::Button associated with it.<br><br>ShutterEvent#item<br><br>Returns the 0 based index to item selected within the program itself.<br><br><br>Included, is a simple example, that just shows how it works, with events executing and such, you should be able to use shutter.rb to do what you want, all you need to do, is create each panel, and hide them all, then simply show the one your interested in, or associated to the item in the list.<br>
<br>Hope this helps you out, it's not perfect, but has similar ideas as to what is being used in Fox.<br><br>L8ers,<br><br><div><span class="gmail_quote">On 2/25/08, <b class="gmail_sendername">Alex Fenton</b> <<a href="mailto:alex@pressure.to">alex@pressure.to</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Gerard Rakoczy wrote:<br> > i was searching for an efect in wxruby like fxshutter from fxruby.<br> > <a href="http://www.fxruby.org/doc/examples.html">http://www.fxruby.org/doc/examples.html</a><br> <br>The nearest thing is wxToolBook, which allows multiple pages to be<br>
controlled (like a notebook), but using icon tools rather than tabs to<br> switch between windows.<br> <br> Unfortunately this is one of the few new classes in wxWidgets 2.8 that<br> isn't currently ported in wxRuby. You could probably create a similar<br>
effect by using a ToolBar + using a Sizer to contain the main window,<br> and swap and hide/show panels.<br> <br><br> alex<br> <br><br> _______________________________________________<br> wxruby-users mailing list<br> <a href="mailto:wxruby-users@rubyforge.org">wxruby-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/wxruby-users">http://rubyforge.org/mailman/listinfo/wxruby-users</a><br> </blockquote></div><br><br clear="all"><br>-- <br>Mario Steele<br><a href="http://www.trilake.net">http://www.trilake.net</a><br>
<a href="http://www.ruby-im.net">http://www.ruby-im.net</a><br><a href="http://rubyforge.org/projects/wxruby/">http://rubyforge.org/projects/wxruby/</a><br><a href="http://rubyforge.org/projects/wxride/">http://rubyforge.org/projects/wxride/</a><br>
<a href="http://rubyforge.org/projects/vwmc/">http://rubyforge.org/projects/vwmc/</a>