search for: wxmenubar

Displaying 19 results from an estimated 19 matches for "wxmenubar".

2007 May 22
0
[1029] trunk/wxruby2/swig/classes/MenuBar.i: Add special GC protection for Wx::Menu to prevent premature destruction
...08:20:06 UTC (rev 1029) </span><span class="lines">@@ -4,12 +4,37 @@ </span><span class="cx"> %include "../common.i" </span><span class="cx"> </span><span class="cx"> %module(directors="1") wxMenuBar </span><del>-GC_MANAGE_AS_OBJECT(wxMenuBar); </del><ins>+GC_MANAGE_AS_WINDOW(wxMenuBar); </ins><span class="cx"> </span><del>-%ignore wxMenuBar(int n , wxMenu* menus[] , const wxString titles[] ) ; </del><ins>+%ignore wxMe...
2004 May 06
1
Re: Question about wxMenuBar
...ruby 1.8.1 (2003-12-25) [i386-mswin32] and wxRuby 0.3. HTH. -----Original Message----- From: wxruby-users-bounces@rubyforge.org [mailto:wxruby-users-bounces@rubyforge.org] On Behalf Of Kevin Smith Sent: Thursday, 6 May 2004 1:24 PM Cc: Wxruby users list Subject: [Wxruby-users] Re: Question about wxMenuBar I received this question off-list, but thought it would be interesting to everyone. > Hello, > > I am running my program that uses control shortcut keys > for the menu items I have declared in my menubar. > However, I noticed something strange happening, > shortcut command...
2004 May 05
0
Re: Question about wxMenuBar
I received this question off-list, but thought it would be interesting to everyone. > Hello, > > I am running my program that uses control shortcut keys > for the menu items I have declared in my menubar. > However, I noticed something strange happening, > shortcut commands can be over-written during runtime. > > example: > > I set my first menu item, in File
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
...lt;/span><span class="lines">@@ -3,36 +3,12 @@ </span><span class="cx"> </span><span class="cx"> %include "../common.i" </span><span class="cx"> </span><del>-%module(directors="1") wxMenuBar -GC_MANAGE_AS_WINDOW(wxMenuBar); </del><ins>+%module(directors="1") wxMenuBar; +// Memory management is handled via the containing Frame +GC_NEVER(wxMenuBar); </ins><span class="cx"> </span><span class="cx"> %ignore wxMenuBar(int n...
2007 Jul 04
5
loading menu using XmlResource
...the corresponding methods XmlResource#load_menu_barXmlResource#load_menui get the error saying ''XML resource ''Opzioni'' (class ''wxMenu'') not found!'' trying to load a menu and ''XML resource ''ID_MENUBAR'' (class ''wxMenuBar'') not found!'' trying to load a menu bar. Here is my xml: <?xml version="1.0" encoding="UTF-8"?> <resource version="2.3.0.1" xmlns="http://www.wxwidgets.org/wxxrc"> <object class="wxFrame" name="ID_NOTIFIER...
2004 May 01
4
wxruby-swig 0.0.13 is up
This fixes the wxRED Mac link error. Thanks to Nick for pointing out that I hadn''t removed some wxRED code related to an earlier experiment. Hopefully this one will build on Mac, end-to-end. I also found and fixed a problem that was causing the crash on exit: wxWindows automatically deletes the C++ app object as soon as the last frame is closed. Later, when ruby garbage collected the
2004 Apr 23
11
Building wxruby-swig for Mac
...gems/1.8/rake-0.3.1/lib -I /usr/local/lib/ruby/site_ruby/1.8 -I /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin -I /usr/local/lib/ruby/site_ruby -I /usr/local/lib/ruby/1.8 -I /usr/local/lib/ruby/1.8/powerpc-darwin -I . -o obj/MenuBar.o src/MenuBar.cpp src/MenuBar.cpp: In function `VALUE _wrap_wxMenuBar_FindMenu(int, VALUE*, long unsigned int)'': src/MenuBar.cpp:883: warning: passing `const wxMenuBar'' as `this'' argument of ` int wxMenuBar::FindMenu(const wxString&)'' discards qualifiers ... Then boom: /Users/ryan/Desktop/Configuration/wxMac-2.4.2/...
2007 Dec 19
1
Menu Bar KeyBoard Shortcuts.
Hello, I''m trying to use a wxMenuBar from XRC built with DialogBlocks on Windows. My first example had the menu being called from the Frame because I couldn''t figure out how to call the menu from my XRC. Shortcuts worked nicely. Example 1: menu.append(Wx::ID_EXIT, "E&xit\tAlt-X", "Quit this program")...
2004 Apr 17
1
wxruby-swig progress report
...accurate. I have already discovered one case where it does not match the 2.4.2 html docs. To work around this, the app I wrote to extract .h files from the xml has a table of incorrect api entries, along with a table of missing entries. 3. To make sure it works, I have converted a single class (wxMenuBar) over to use the new .h file. Aside from xml problems (see above), it worked perfectly. I am optimistic that adding support for most classes and most methods should be quite easy. 4. The .h files could be used by anyone wanting to swig wxWidgets for any language. Kevin P.S. This weekend my f...
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...it is still accessible on screen, -// because it may still handle events. Rather than a SWIG %markfunc, -// which can catch destroyed MenuBars linked to an in-scope ruby -// variable and cause segfaults, MenuBars are always marked via the -// containing Frame. -void GC_mark_MenuBarBelongingToFrame(wxMenuBar *menu_bar) -{ - rb_gc_mark( SWIG_RubyInstanceFor(menu_bar) ); - // Mark each menu in the menubar in turn - for ( int i = 0; i < menu_bar->GetMenuCount(); i++ ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ -&nbsp&nbsp&nbsp&nbsp&nbsp&nbs...
2007 Jul 21
0
[1127] trunk/wxruby2: Move shared C++ GC functions into separate file included into wx.i
...it is still accessible on screen, +// because it may still handle events. Rather than a SWIG %markfunc, +// which can catch destroyed MenuBars linked to an in-scope ruby +// variable and cause segfaults, MenuBars are always marked via the +// containing Frame. +void GC_mark_MenuBarBelongingToFrame(wxMenuBar *menu_bar) +{ + rb_gc_mark( SWIG_RubyInstanceFor(menu_bar) ); + // Mark each menu in the menubar in turn + for ( int i = 0; i < menu_bar->GetMenuCount(); i++ ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ +&nbsp&nbsp&nbsp&nbsp&nbsp&nbs...
2008 Aug 12
1
xrc panels using xrcise
...uot; name="ID_NOTIFIER" subclass="notifier"> <style>wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxCLOSE_BOX|wxFULL_REPAINT_ON_RESIZE</style> <size>300,400</size> <title>wxnc</title> <object class="wxMenuBar" name="ID_MENUBAR"> <object class="wxMenu"> <label>File</label> <object class="wxMenuItem" name="ID_CONNETTI_MENU_ITEM"> <label>Connetti</label>...
2007 Apr 29
0
[986] branches/wxruby2/wxwidgets_282/swig/classes/Frame.i: Default constructor is required for use with XRC
...t;<span class="cx"> </span><span class="cx"> %module(directors="1") wxFrame </span><span class="cx"> </span><del>-%ignore wxFrame::wxFrame(); - </del><span class="cx"> %apply SWIGTYPE *DISOWN { wxMenuBar * } </span><span class="cx"> </span><span class="cx"> %typemap(in,numinputs=1) (int n, int * widths) (int size, int i, int *arr){ </span></span></pre> </div> </div> </body> </html>
2005 Dec 30
8
WxRuby newbie Mac OS 10.4 install questions
...nus seem to work, all I see is a single "ruby" menu. As far as number 2), I see that README.osx has a paragraph that says "Applications under OS X require resource bundles. Most side effects of this have been minimized as much as possible, but Without the wxMac resource files, the wxMenuBar does not work properly." Unfortunately, I''m not quite sure what this means. What are the wxMac resource files, where do I get them, and how would I make a command-line invocation of Ruby know about them. thanks for any light anyone can shed... Carl ________________________________...
2004 Nov 13
2
wxRuby and XRC via wxGlade
...</object> </object> </object> </object> </object> </object> </object> </object> <object class="wxMenuBar" name="frame_1_menubar"> <object class="wxMenu" name="The File Menu"> <label>File</label> <object class="wxMenuItem" name="Open a file"> <label>Ope...
2009 Aug 10
2
xrcise -o test.rb ui.xrc
..."wxCalendarCtrl" name="m_calendar1"> <style>wxCAL_SHOW_HOLIDAYS</style> </object> </object> </object> </object> </object> </object> <object class="wxMenuBar" name="m_menubar1"> <label>MyMenuBar</label> <object class="wxMenu" name="m_menu1"> <label>File</label> </object> <object class="wxMenu" name="m_menu11"> <l...
2009 Apr 03
2
Problem with spacing
...class="wxButton" name="quitButton"> <label>E_xit</label> <default>0</default> </object> </object> </object> </object> </object> <object class="wxMenuBar" name="m_menubar1"> <label>MyMenuBar</label> <object class="wxMenu" name="m_File"> <label>_File</label> </object> <object class="wxMenu" name="m_data"> <lab...
2007 Apr 28
6
XRC Problem
...> <object class="wxFrame" name="ContactList" subclass="ContactList"> <style>wxDEFAULT_FRAME_STYLE</style> <title>Ruby IM - Contact List</title> <size>297, 732</size> <object class="wxMenuBar" name="ContactList_menubar"> <object class="wxMenu" name="clFile"> <label>_File</label> <object class="wxMenuItem" name="clfConnect"> <label>_Conne...
2005 May 03
10
Is wxRuby-SWIG version usable enough to package for download?
If wxRuby-SWIG is as usable as wxRuby 0.6.0, maybe it should be given a version number and packaged up for download. Given the nature of SWIG, having a lot more people use it would probably result in more code contributions to this project. Seems most of the changes are 2+ months old, so I''m guessing wxRuby-SWIG is fairly stable right now in terms of frequency of changes...