Hi, I&#39;m new here<br><br>I&#39;m planing to use wxruby to create a database program <br>with sqlite as backend<br>My system is Ubuntu 8.04, ruby 1.8.6 and wxruby-2.0.0<br>I choose to use xrc file as GUI definition<br>but somehow wxsugar didn&#39;t work with my system<br>
(xrcise is not a known command)<br><br>So I write ruby code to load the xrc file manually (thanks google) and it works, with some problem though<br><br>so here is my question<br>1. Tab-navigation is not working (I pressed tab and the focus is not moving to next widget). How do I get this working?<br>
<br>2. I cannot get a menu-item widget to work<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">@menu = @finder.call(&quot;menuItem_quit&quot;) <br>
</blockquote>does not work<br><br>Thanks<br><br>here is my code :<br>###<br><br>require &#39;rubygems&#39;<br>require &#39;wx&#39;<br><br>class Frame &lt; Wx::Frame<br>    def initialize()<br>        super()<br>        xml = Wx::XmlResource.get<br>
        xml.flags = 2<br>        xml.init_all_handlers<br>        xml.load(&quot;siswa.xrc&quot;)<br>        xml.load_frame_subclass(self, parent, &quot;Siswa&quot;)<br>        <br>        @finder = lambda do | x |<br>            int_id = Wx::xrcid(x)<br>
            begin<br>                Wx::Window.find_window_by_id(int_id, self) || int_idvt_button(button_save) { save() }<br>            rescue RuntimeError<br>                int_id<br>            end<br>        end<br>
        <br>        @txtNis = @finder.call(&quot;textCtrl_nis&quot;)<br>        @txtNama = @finder.call(&quot;textCtrl_nama&quot;)<br><br>        button_quit = @finder.call(&quot;button_quit&quot;)<br>         <br>         evt_button(button_quit) { quit() }<br>
<br>    end<br><br>    def quit()<br>        self.close()<br>    end<br>end<br><br>Wx::App.run do <br>  a = Frame.new().show<br>end<br><br><br>###<br>and this is the xrc file<br>###<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot; ?&gt;<br>
&lt;resource xmlns=&quot;<a href="http://www.wxwindows.org/wxxrc">http://www.wxwindows.org/wxxrc</a>&quot; version=&quot;2.3.0.1&quot;&gt;<br>    &lt;object class=&quot;wxFrame&quot; name=&quot;Siswa&quot;&gt;<br>        &lt;style&gt;wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL&lt;/style&gt;<br>
        &lt;size&gt;480,640&lt;/size&gt;<br>        &lt;title&gt;Siswa&lt;/title&gt;<br>        &lt;object class=&quot;wxMenuBar&quot; name=&quot;menubar&quot;&gt;<br>            &lt;label&gt;MenuBar&lt;/label&gt;<br>            &lt;object class=&quot;wxMenu&quot; name=&quot;m_menu3&quot;&gt;<br>
                &lt;label&gt;_Operation&lt;/label&gt;<br>                &lt;object class=&quot;wxMenuItem&quot; name=&quot;menuItem_quit&quot;&gt;<br>                    &lt;label&gt;_Quit&lt;/label&gt;<br>                    &lt;help&gt;&lt;/help&gt;<br>
                &lt;/object&gt;<br>            &lt;/object&gt;<br>        &lt;/object&gt;<br>        &lt;object class=&quot;wxFlexGridSizer&quot;&gt;<br>            &lt;rows&gt;2&lt;/rows&gt;<br>            &lt;cols&gt;2&lt;/cols&gt;<br>
            &lt;vgap&gt;10&lt;/vgap&gt;<br>            &lt;hgap&gt;10&lt;/hgap&gt;<br>            &lt;growablecols&gt;0&lt;/growablecols&gt;<br>            &lt;growablerows&gt;&lt;/growablerows&gt;<br>            &lt;object class=&quot;sizeritem&quot;&gt;<br>
                &lt;option&gt;1&lt;/option&gt;<br>                &lt;flag&gt;wxEXPAND&lt;/flag&gt;<br>                &lt;border&gt;5&lt;/border&gt;<br>                &lt;object class=&quot;wxFlexGridSizer&quot;&gt;<br>
                    &lt;rows&gt;2&lt;/rows&gt;<br>                    &lt;cols&gt;2&lt;/cols&gt;<br>                    &lt;vgap&gt;5&lt;/vgap&gt;<br>                    &lt;hgap&gt;5&lt;/hgap&gt;<br>                    &lt;growablecols&gt;1&lt;/growablecols&gt;<br>
                    &lt;growablerows&gt;&lt;/growablerows&gt;<br>                    &lt;object class=&quot;sizeritem&quot;&gt;<br>                        &lt;option&gt;1&lt;/option&gt;<br>                        &lt;flag&gt;&lt;/flag&gt;<br>
                        &lt;border&gt;5&lt;/border&gt;<br>                        &lt;object class=&quot;wxStaticText&quot; name=&quot;staticText_nis&quot;&gt;<br>                            &lt;label&gt;Nis&lt;/label&gt;<br>
                        &lt;/object&gt;<br>                    &lt;/object&gt;<br>                    &lt;object class=&quot;sizeritem&quot;&gt;<br>                        &lt;option&gt;1&lt;/option&gt;<br>                        &lt;flag&gt;wxEXPAND&lt;/flag&gt;<br>
                        &lt;border&gt;5&lt;/border&gt;<br>                        &lt;object class=&quot;wxTextCtrl&quot; name=&quot;textCtrl_nis&quot;&gt;<br>                            &lt;value&gt;&lt;/value&gt;<br>                            &lt;maxlength&gt;0&lt;/maxlength&gt;<br>
                        &lt;/object&gt;<br>                    &lt;/object&gt;<br>                    &lt;object class=&quot;sizeritem&quot;&gt;<br>                        &lt;option&gt;1&lt;/option&gt;<br>                        &lt;flag&gt;&lt;/flag&gt;<br>
                        &lt;border&gt;5&lt;/border&gt;<br>                        &lt;object class=&quot;wxStaticText&quot; name=&quot;staticText_nama&quot;&gt;<br>                            &lt;label&gt;Nama&lt;/label&gt;<br>
                        &lt;/object&gt;<br>                    &lt;/object&gt;<br>                    &lt;object class=&quot;sizeritem&quot;&gt;<br>                        &lt;option&gt;1&lt;/option&gt;<br>                        &lt;flag&gt;wxEXPAND&lt;/flag&gt;<br>
                        &lt;border&gt;5&lt;/border&gt;<br>                        &lt;object class=&quot;wxTextCtrl&quot; name=&quot;textCtrl_nama&quot;&gt;<br>                            &lt;value&gt;&lt;/value&gt;<br>                            &lt;maxlength&gt;0&lt;/maxlength&gt;<br>
                        &lt;/object&gt;<br>                    &lt;/object&gt;<br>                &lt;/object&gt;<br>            &lt;/object&gt;<br>            &lt;object class=&quot;sizeritem&quot;&gt;<br>                &lt;option&gt;1&lt;/option&gt;<br>
                &lt;flag&gt;&lt;/flag&gt;<br>                &lt;border&gt;5&lt;/border&gt;<br>                &lt;object class=&quot;wxBoxSizer&quot;&gt;<br>                    &lt;orient&gt;wxVERTICAL&lt;/orient&gt;<br>
                    &lt;object class=&quot;sizeritem&quot;&gt;<br>                        &lt;option&gt;1&lt;/option&gt;<br>                        &lt;flag&gt;wxEXPAND&lt;/flag&gt;<br>                        &lt;border&gt;5&lt;/border&gt;<br>
                        &lt;object class=&quot;wxButton&quot; name=&quot;button_quit&quot;&gt;<br>                            &lt;label&gt;_Quit&lt;/label&gt;<br>                            &lt;default&gt;0&lt;/default&gt;<br>
                        &lt;/object&gt;<br>                    &lt;/object&gt;<br>                &lt;/object&gt;<br>            &lt;/object&gt;<br>        &lt;/object&gt;<br>    &lt;/object&gt;<br>&lt;/resource&gt;<br>