search for: wxmenu

Displaying 20 results from an estimated 22 matches for "wxmenu".

Did you mean: xmenu
2007 Jul 04
5
loading menu using XmlResource
...#39;m evaluating XmlResource: loading frame, dialogs and access widgets is ok but i''m not able to load menu bar and menu using 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 versi...
2008 Jan 18
1
Noob question for wxMenu.get_menu_items()
How do I iterate through the pseudo-template list class containing wxMenuItem pointers. Am still a bit of a Ruby/wxRuby noob. Currently have this: pp mymenu.get_menu_items() which prints: #<SWIG::TYPE_p_wxMenuItemList:0x4634fa8> However when I try to do: mymenu.get_menu_items().each {|key| ...} it tells me there is no each method for this class (SWIG::TYPE_p_...
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>_Co...
2006 Apr 23
2
Bigdemo Menu Demo
Does anyone know how the wxMenu.rbw files was going to be competed? I believe we have the code now to finish it off but I don''t want to guess what the demo writer had in mind (though I think it''s obvious). Specifically, it''s the code that adds and removes menu items. I''ve made some progre...
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 w...
2004 Aug 02
1
append_menu patch for wxruby
Attached is a patch to add the ''append_menu'' method to wxMenu which corresponds to the WxWidgets method for appending submenus. (See Feature Request #255 on rubyforge). -- David Mitchell Software Engineer Telogis NOTICE: This message (including any attachments) contains CONFIDENTIAL INFORMATION intended for a specific individual and purpose, and is protec...
2004 Jan 28
1
Submenues
...s is a question for wxWindows mailing lists. It''s great that 0.2 version will be released soon! It is impossible to create submenues in 0.1. Could you add the ruby function append_submenu(id, item, submenu, helpString) to the Wx::Menu class in 0.2, which calls the wxWindows function void wxMenu::Append( int id, const wxString& item, wxMenu *subMenu, const wxString& helpString = "" ), please? Also, function append_item() doesn''t work: menu = Menu.new submenu = Menu.new submenu.append(2, "item of submenu") item_with_submenu...
2005 Jul 27
2
SWIGging ConfigBase
Hi all I''m trying to write an .i file for ConfigBase. If I can figure out a few general SWIG things then I think most of it will work. Apols for the noob swig questions. The C++ class has lots of overloaded methods called Read, which return different kinds of values. In wxruby-not-swig these are implemented as read, read_bool, read_int and so on. read() means read_string(). In ruby
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...
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"> <...
2006 Dec 24
0
[802] trunk/wxruby2/swig/classes: Add support for MenuEvent (MENU_OPEN, MENU_CLOSE, MENU_HIGHLIGHT)
...enuEvent (MENU_OPEN, MENU_CLOSE, MENU_HIGHLIGHT)</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxruby2swigclassesEvtHandleri">trunk/wxruby2/swig/classes/EvtHandler.i</a></li> <li><a href="#trunkwxruby2swigclassesincludewxMenuEventh">trunk/wxruby2/swig/classes/include/wxMenuEvent.h</a></li> </ul> <h3>Added Paths</h3> <ul> <li><a href="#trunkwxruby2swigclassesMenuEventi">trunk/wxruby2/swig/classes/MenuEvent.i</a></li> </ul> </div>...
2005 Jul 26
10
Patch for wxRuby2
...o changed line 13 in fixmodule.rb to mWx and line 11 in fixmainmodule.rb to mWx from mWxruby2. Also changed mWx in functions.i and XmlResource.i - Added the xrc example program (again) - Added typemap to finally get wxItemKind working correctly, gets rid of my fixedswigcode.rb hack. - Added the wxMenuItem class. - Added a type check for wxDateTime so CalendarCtrl now works properly with ruby class DateTime. - Changed $DEBUG in extconf.rb to $DEBUG_BUILD, for some reason it was clashing with mkmf on Windows. - Added wxBeginBusyCursor and wxEndBusyCursor to functions.i - Added wxToolTip class. - M...
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&...
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 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&...
2008 Jul 28
12
Segfault with GridCellChoiceEditor
I have a problem. In my application I have a few Grid objects in a Notebook. The Grid objects are populated via GridTableBase. Certain Grid cells need to have a choice interface (I''m artificially enforcing foreign key constraints). All this works to the point where you try to edit the value for that cell. The choice box renders (i.e. the drop down arrow appears) then the application
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>...
2006 Dec 20
0
[791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments
...(bool deleteHandler = false); </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param wxMenu* -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param const wxPoint& -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><span class="cx"> bool PopupMenu(wxMenu* menu , const wxPoint& pos = wxDefau...
2007 Apr 30
0
[996] branches/wxruby2/wxwidgets_282: TopLevelWindow: add some 2.8 methods; document; add missing CentreOnScreen
...p&nbsp&nbsp&nbsp&nbsp&nbspvirtual bool SetTransparent(int alpha); + </ins><span class="cx"> #if defined(__SMARTPHONE__) </span><span class="cx"> virtual void SetLeftMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL) = 0; </span><span class="cx"> virtual void SetRightMenu(int id = wxID_ANY, const wxString& label = wxEmptyString, wxMenu *subMenu = NULL) = 0; </span><span class="lines">@@ -92,8 +89,8 @@ </span><span class="cx"...